You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you, like me, are using multiple servers to manage your MUD, this is an option to make life a little easier.
In my setup I have a local version of the MUD running, for local development on my own machine. Then I have a public open development server, for community and shared development. Finally I have the publicly playable production server, which our players use.
I'll go into how we manage releases etc. for the development and player server through Github at some other time.
Anyway, back to the multi server settings file.
It's actually a very simple concept, using the GAME_DIR variable that Evennia supplies:
In settings.py put something like the following to differentiate the settings for each server. This way, you can just have one single settings file, for all the servers, and make things a little easier on yourself when user Github for version control etc.
# Development server, with custom portsifGAME_DIR=="/srv/dev_ashyria/dev_ashyria":
print("Starting remote development version of Ashyria!")
SERVERNAME="Ashyria Development v. 0.0.1"SERVER_HOSTNAME="dev.ashyriamud.com"TELNET_PORTS= [4010]
# I use a lot more specific settings variables, but you get the idea# Public play server, using standard ports (no changes)elifGAME_DIR=="/srv/play_ashyria/play_ashyria":
print("Starting public play version of Ashyria!")
SERVERNAME="AshyriaMUD"SERVER_HOSTNAME="play.ashyriamud.com"# I use a lot more specific settings variables, but you get the idea# Local machine development setup, again with custom ports. else:
print("Starting local development version of Ashyria!")
SERVERNAME="Ashyria Local Development v. 0.0.1"SERVER_HOSTNAME="localhost"TELNET_PORTS= [4020]
# I use a lot more specific settings variables, but you get the idea```
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If you, like me, are using multiple servers to manage your MUD, this is an option to make life a little easier.
In my setup I have a local version of the MUD running, for local development on my own machine. Then I have a public open development server, for community and shared development. Finally I have the publicly playable production server, which our players use.
I'll go into how we manage releases etc. for the development and player server through Github at some other time.
Anyway, back to the multi server settings file.
It's actually a very simple concept, using the GAME_DIR variable that Evennia supplies:
In settings.py put something like the following to differentiate the settings for each server. This way, you can just have one single settings file, for all the servers, and make things a little easier on yourself when user Github for version control etc.
Beta Was this translation helpful? Give feedback.
All reactions