Created
June 14, 2017 05:33
-
-
Save prat0318/0c91e655fb3ea960a2c6e6b889f47053 to your computer and use it in GitHub Desktop.
Sample history to run flash photography
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 git clone https://github.com/prat0318/flash.git | |
3 cd flash/ | |
4 sudo apt-get update | |
5 sudo apt-get install -y python-dev python-pip | |
6 sudo pip install -y pillow flask | |
7 sudo pip install pillow flask | |
8 ls | |
9 flask run | |
10 vi wsgi.py | |
11 ls | |
12 vi flash.ini | |
13 sudo apt-get install nginx | |
14 sudo pip install wsgi | |
15 sudo pip install uwsgi | |
16 uwsgi --socket 0.0.0.0:8000 --protocol=http -w wsgi | |
17 uwsgi --socket 0.0.0.0:80 --protocol=http -w wsgi | |
18 sudo uwsgi --socket 0.0.0.0:80 --protocol=http -w wsgi | |
19 uwsgi --socket 0.0.0.0:8000 --protocol=http -w wsgi | |
20 vi flash.py | |
21 vi templates/index.html | |
22 sudo vi /etc/init/flash.conf | |
23 vi flash.ini | |
24 sudo start flash | |
25 sudo service start flash | |
26 initctl | |
27 sudo apt install upstart | |
28 sudo start flash | |
29 initctl | |
30 initctl --version | |
31 sudo start flash | |
32 service flash status | |
33 service flash start | |
34 sudo service flash start | |
35 sudo initctl reload-configuration | |
36 sudo apt-get install upstart-sysv | |
37 sudo update-initramfs -u | |
38 sudo initctl reload-configuration | |
39 cat /etc/init/flash.conf | |
40 uwsgi | |
41 ps -p1 | grep systemd && echo systemd || echo upstart | |
42 sudo reboot | |
43 curl localhost:8000 | |
44 ps -p1 | grep systemd && echo systemd || echo upstart | |
45 sudo start flash | |
46 less /var/log/syslog | |
47 less /var/log/upstart/rsyslog.log | |
48 sudo less /var/log/upstart/rsyslog.log | |
49 dmesg | |
50 cat /etc/init/flash.conf | |
51 pwd | |
52 ls | |
53 ls flash | |
54 mkdir -p /home/ubuntu/flash/flashenv/bin | |
55 sudo start flash | |
56 dmesg | |
57 cat /etc/init/flash.conf | |
58 ls /home/ubuntu/flash/flashenv/bin | |
59 ls /home/ubuntu/flash | |
60 sudo vi /etc/init/flash.conf | |
61 sudo start flash | |
62 sudo vi /etc/nginx/sites-available/flash | |
63 sudo ln -s /etc/nginx/sites-available/flash /etc/nginx/sites-enabled/ | |
64 sudo nginx -t | |
65 sudo vi /etc/nginx/sites-available/flash | |
66 sudo nginx -t | |
67 sudo vi /etc/nginx/sites-enabled/default | |
68 ls -lart /etc/nginx/sites-enabled/default | |
69 rm /etc/nginx/sites-enabled/default | |
70 sudo rm /etc/nginx/sites-enabled/default | |
71 ls /etc/nginx/sites-available/default | |
72 sudo service nginx restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment