Frappe Cloud Support Partners Foundation Frappe School

Can I run my site with custom ports?

Hey, Is it possible to run a site from a specific port?
I have installed two frappe benches. When I run bench start from my first bench, it’s etting opened on port 8000. When I run bench start from second bench, it is getting opened on port 8000. I want to open the site from my second site on 8000.

How can I do this?

PS: I’m a beginner and a little elaboration would be greatly appreciated!


Might help.

I tried that, but I’m getting the following error:


redis.exceptions.ConnectionError: Error 111 connecting to localhost:13003. Connection refused.

if you have 13003, then the processes are probably already running and need to be stopped before you start them again

Just check your configs. your common_site_config and redis configs in config/.*conf are not in sync. This is usually ensured when defaults are created but if you change them, you need to ensure that they are in sync.


# config/redis_cache.conf
dbfilename redis_cache.rdb
dir /Users/ankush/benches/develop/config/pids
pidfile /Users/ankush/benches/develop/config/pids/
port 13001     <===== check this
maxmemory 409mb
maxmemory-policy allkeys-lru
appendonly no

save ""
// sites/common_site_config.json
 // other keys clipped to highlight relevant field
 "redis_cache": "redis://localhost:13001",
 "redis_queue": "redis://localhost:11001",
 "redis_socketio": "redis://localhost:12001"