mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
Create install.md
This commit is contained in:
1 parent
eda44fa57a
commit
f0c1109a8b
1 file changed
+11
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# Installation GUIDE
|
||||||
|
This documentation is very good, but needs a few changes to make it work (in our case) :
|
||||||
|
https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-22-04<br>
|
||||||
|
|
||||||
|
- You don't need to create `wsgi.py`, when asked, replace : `wsgi:app` with `'app:create_app()'` .
|
||||||
|
- EX : For starting APP with gunicorn : `gunicorn --bind 0.0.0.0:5000 'app:create_app()'`
|
||||||
|
- In Service File, replace "ExecStart" line with :<br>
|
||||||
|
`ExecStart=/var/www/fipam/bin/gunicorn --workers 1 --bind unix:fipam.sock -m 007 'app:create_app()'`<br>
|
||||||
|
_(Adjust the number of workers to your needs)_
|
||||||
|
- you must first run setup.py to create the admin user.<br>
|
||||||
|
_(it will create a second database in `./var/setup-instance`. It will have to be merged in the application database in `./var/app-instance`)_
|
||||||
Reference in new issue
Block a user