-
Notifications
You must be signed in to change notification settings - Fork 0
/
server_commands.txt
46 lines (34 loc) · 989 Bytes
/
server_commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Create server
https://portal.bw-cloud.org/project/instances/
https://www.bw-cloud.org/de/bwcloud_scope/nutzen
# Log in
ssh isas-cloudrunner
# Install
sudo apt update
sudo apt install git
sudo apt install virtualenv
rm ./Cloudrunner
git clone https://github.com/KIT-ISAS/Cloudrunner.git
cd ./Cloudrunner
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Test locally
gunicorn --workers=2 --bind 0.0.0.0:8080 runner:app_julia
localhost:8080/?M=add&a=2.5&b=1.4
# Terminate old process
pkill gunicorn
# Update code from GitHub
ssh isas-cloudrunner
cd ./Cloudrunner
git pull
# Install & Compile
cp juliapkg.json .venv/julia_env/pyjuliapkg/
python runner.py
gunicorn --workers=1 --bind 0.0.0.0:8080 --timeout 500 runner:app_julia
# Deploy
gunicorn --workers=5 --bind 0.0.0.0:8080 --timeout 500 runner:app_julia --daemon
# Test in Browser
193.196.37.183:8080/?M=add&a=2.5&b=1.4
run all functionalities once to make them faster
# TODO: nginx reverse proxy