forked from jztd/AIRPACT-Fire-Website
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Readme
45 lines (24 loc) · 1.19 KB
/
Readme
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
-------------------Getting started---------------------------------
Step 1: SSH into the thing!
sudo ssh [email protected]
Password: airpact@fire#16
Step 2: run server
cd /home/justin/AIRPACT-Fire-Website
* No Logs *
sudo gunicorn --bind 0.0.0.0:80 AIRPACT_Fire.wsgi:application (in the same directory as manage.py)
* Log to master_log file *
sudo gunicorn --bind 0.0.0.0:80 --log-level debug --log-file master_log AIRPACT_Fire.wsgi:application
--------------------Restarting Server:--------------------------------------
- ps -A (Find the proccess with the gunicorn pid)
- sudo kill [pid]
- sudo gunicorn --bind 0.0.0.0:80 AIRPACT_Fire.wsgi:application (in the same directory as manage.py)
---------------------------log_script----------------------------------------
Usage:
sudo ./log_script [log_file] [url_to_post]
or with nohup (Script doesn't die when server is off)
sudo nohup ./log_script [file] [url] &
Example:
sudo nohup ./log_script master_log https://hooks.slack.com/services/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 &
Contents:
airpacfire.eecs.wsu.edu
scp [options] username1@source_host:directory1/filename1 username2@destination_host:directory2/filename2