Setup on Digital Ocean Server - kvanland/csci401ProjectPlatform GitHub Wiki
-
SSH into the digital ocean server there should be three folders: ProjectPlatform, ProjectPlatformServer, and algorithm.
-
Inside ProjectPlatformServer run the following commands in order
cd server
mvn package
cd target
ps ax | grep java
kill -9 PID
nohup java -jar platform-0.0.1-SNAPSHOT.jar &
enter twice
In the commands PID refers to the process ID associated with the project if it is already running if it is not then skip killing the process.
- Inside the ProjectPlatform run the following commands in order
yarn
yarn build
pm2 kill
pm2 serve build
- Inside the algorithm run follow these instructions
export FLASK_APP=server.py
flask run
Make sure to have flask installed with pip and any other dependencies including pulp which can also be installed from pip.