-
Notifications
You must be signed in to change notification settings - Fork 0
/
comms.txt
36 lines (26 loc) · 1.12 KB
/
comms.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
virtualenv -p python3 venv
export FLASK_APP=start_dev.py
export FLASK_DEBUG=1
flask run --port 1918
flask db init
flask db migrate
flask db upgrade
venv/bin/python3 venv/bin/flask shell
venv/bin/python3 venv/bin/flask db upgrade
venv/bin/pip3 install mysql-connector-python
venv/bin/pip3 install mysql-python
venv/bin/pip3 install -r requiments.txt
tar -xvf crmit_0_8.tar.gz
scp PycharmProjects/crmit/crmit_1_0_3.tar.gz [email protected]:/home/kristallp/crm.cmit22.ru/cgi/
rm -rf app/ comms.txt config.py fla.cgi manage.py migrations/ __pycache__/ README.md requiments.txt
rm -rf app_holder.py credentials.txt make_crmit_dump.py tests/
rm -rf start_dev.py start_prod_default.py start_prod_wsgi.py
# run server via ssh and keep it alive.
kristallp@kristallp:~/crm.cmit22.ru/cgi$ nohup ./start_prod_wsgi.py &
[1] 51493
kristallp@kristallp:~/crm.cmit22.ru/cgi$ logout
# login again and stop server.
alex@alex-Inspiron-3543 ~ $ ssh [email protected]
kristallp@kristallp:~/crm.cmit22.ru/cgi$ ps ax | grep start_prod_wsgi
kristallp@kristallp:~/crm.cmit22.ru/cgi$ kill 51493