Running the game engine and interface on a server

Running the game engine

  • ssh into the server

  • go to the cloned diplomacy folder (ALLAN-DIP/diplomacy) e.g., cd diplomacy

  • run nohup python -m diplomacy.server.run &

Running the interface

  • ssh into the server and go to the cloned folder

  • cd diplomacy/web

  • pm2 start "npm start"

Restarting the server and interface

  • ssh into the server and go to the diplomacy folder

  • ps -fA | grep python and find the process id

  • kill <process_id>

  • pm2 stop all

  • follow the steps for running the game engine and the interface

Last updated