
ERPNext Production (Actually Working)
- Atul
- Technology , Web , Free software , The big o community , Frappe , Erpnext
- July 11, 2025
Table of Contents
ERPNext Production (Actually Working)
ERPNext with Webshop Setup - Step by Step Commands
1. Initialize Frappe Bench
bench init --frappe-branch version-15 frappe-realm
cd frappe-realm/
2. Create New Site
bench new-site store.thebigocommunity.org
bench --site store.thebigocommunity.org add-to-hosts
3. Get Required Apps
bench get-app --branch version-15 erpnext
bench get-app payments
bench get-app webshop
4. Install Apps on Site
bench --site store.thebigocommunity.org install-app erpnext
bench --site store.thebigocommunity.org install-app payments
bench --site store.thebigocommunity.org install-app webshop
5. Configure Nginx (Optional - for production)
# Copy existing nginx config as template
sudo cp /etc/nginx/sites-available/existing-site.conf /etc/nginx/sites-available/store.thebigocommunity.org
# Edit the nginx configuration
sudo nano /etc/nginx/sites-available/store.thebigocommunity.org
# Enable the site
sudo ln -s /etc/nginx/sites-available/store.thebigocommunity.org /etc/nginx/sites-enabled/
# Test nginx configuration
sudo nginx -t
# Setup SSL certificate (optional)
sudo certbot --nginx -d store.thebigocommunity.org
6. Set Admin Password
bench --site store.thebigocommunity.org set-admin-password
7. Start the Development Server
bench start
8. Verify Installation
bench --site store.thebigocommunity.org list-apps
Additional Configuration Filesmaria
Common Site Config (sites/common_site_config.json
)
You may need to modify this file for port configurations and other settings.
Procfile
The Procfile may need adjustments for custom port configurations.
Notes:
- Replace
store.thebigocommunity.org
with your actual domain name - The
payments
app is required for webshop functionality - The
webshop
app provides the e-commerce features - Make sure to configure your domain DNS to point to your server
- For production, consider using a process manager like supervisor instead of
bench start
Troubleshooting:
- If ports are conflicting, check with
netstat -tunlp
andsudo lsof -i :PORT
- Ensure nginx configuration matches your bench setup
- Reload nginx after configuration changes:
sudo nginx -s reload