File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Set up server in Raspberry Pi
2
+
3
+ ## Set up Django web app locally
4
+
5
+ Find you IP:
6
+
7
+ ```
8
+ $ ifconfig
9
+ ```
10
+
11
+ Run:
12
+
13
+ ```
14
+ $ python manage.py runserver 192.XXX.XX.XX:8000
15
+ ```
16
+
17
+ You should be able to access your web app from any device in the local network.
18
+
19
+ This will keep the web app running while the SSH connection is active.
20
+
21
+ If you want to serve the app continously you can use ` gunicorn ` :
22
+
23
+ ```
24
+ $ gunicorn --bind 192.XXX.XX.XX:8000 your_project.wsgi --daemon
25
+ ```
26
+
27
+
28
+ ## References
29
+
30
+ - [[ stackoverflow] ( https://stackoverflow.com/questions/13654688/what-is-the-correct-way-to-leave-gunicorn-running )] ( https://stackoverflow.com/questions/13654688/what-is-the-correct-way-to-leave-gunicorn-running )
You can’t perform that action at this time.
0 commit comments