-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Multi Bench Setup
A Multi-Bench setup allows you to have multiple code bases and configurations on the same system. Creating a new bench is very straightforward, you just need to run :
bench init [bench-name]
, preferably in your home directory and let it install dependencies.
When you create a new bench, it will automatically use different ports than the one in the existing bench. For eg, if you would access your website from localhost:8000 from your first bench, for the second bench, it would set the port as 8001.
The biggest advantage to a multibench setup is that you can have different kinds of setups, i.e Development and Production on the same system. A multi-production / multi-development setup is also fine.
For production setup you will have to run bench setup nginx
after creating a new site.
Note:
- If new site automatically created in primary bench,then remove file name frappe_bench_dir in /etc/.
- If server port doesn't changed from 8000, then change it manually in nginx.conf and supervisor.conf
- for redis, change redis port in /sites/common_site_config.json and run following command bench setup socketio bench setup redis service nginx reload supervisorctl reload
Custom Footer Page