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!
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.
E.g.
# config/redis_cache.conf
dbfilename redis_cache.rdb
dir /Users/ankush/benches/develop/config/pids
pidfile /Users/ankush/benches/develop/config/pids/redis_cache.pid
bind 127.0.0.1
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"
}