Skip to content

Commit

Permalink
update installation guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Jun 17, 2018
1 parent 9f4e84c commit 7f61056
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions docs/base/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@ Start eNMS in debugging mode

::

# go to the source directory
cd source
# set the FLASK_APP environment variable
(Windows) set FLASK_APP=gentelella.py
(Unix) export FLASK_APP=gentelella.py

# start the server:
python flask_app.py
# set the FLASK_DEBUG environment variable
(Windows) set FLASK_DEBUG=1
(Unix) export FLASK_DEBUG=1

# run the application
flask run


Start eNMS with gunicorn (better)
Expand All @@ -32,7 +37,7 @@ Start eNMS with gunicorn (better)
::

# start gunicorn
gunicorn --chdir app --config ./gunicorn_config.py flask_app:app
gunicorn --config gunicorn.py enms:app


Start eNMS as a docker container (even better)
Expand All @@ -41,7 +46,7 @@ Start eNMS as a docker container (even better)
::

# download & run the container
docker run -d -p 5100:5100 --name enms --restart always afourmy/enms
docker run -d -p 5000:5000 --name enms --restart always afourmy/enms

Once eNMS is running, go to http://127.0.0.1:5100
Once eNMS is running, go to http://127.0.0.1:5000
-------------------------------------------------

0 comments on commit 7f61056

Please sign in to comment.