Ignores more files, updates mongo URI, starts readme for installing
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,4 @@
|
|||||||
env/*
|
env/*
|
||||||
pocwww.egg*
|
pocwww.egg*
|
||||||
|
|
||||||
|
pocwww/__pycache__/*
|
||||||
|
|||||||
31
README.txt
31
README.txt
@@ -1,29 +1,12 @@
|
|||||||
POC Web Interface
|
# Henry Pump POC Web Interface
|
||||||
===============================
|
|
||||||
|
|
||||||
Getting Started
|
## Installation
|
||||||
---------------
|
1. Install Python 3 & venv with `sudo apt-get install python3 python3-venv`
|
||||||
|
|
||||||
- Change directory into your newly created project.
|
2. From the root of the POC-Java-www directory, run `python3 -m venv env` to create the virtual environment.
|
||||||
|
|
||||||
cd POC Web Interface
|
3. Update the install of pip `env/binpip install --upgrade pip setuptools`
|
||||||
|
|
||||||
- Create a Python virtual environment.
|
4. Install the python module `env/bin/pip install .`
|
||||||
|
|
||||||
python3 -m venv env
|
5. Test the web server `env/bin/pserve production.ini`
|
||||||
|
|
||||||
- Upgrade packaging tools.
|
|
||||||
|
|
||||||
env/bin/pip install --upgrade pip setuptools
|
|
||||||
|
|
||||||
- Install the project in editable mode with its testing requirements.
|
|
||||||
|
|
||||||
env/bin/pip install -e ".[testing]"
|
|
||||||
|
|
||||||
- Run your project's tests.
|
|
||||||
|
|
||||||
env/bin/pytest
|
|
||||||
|
|
||||||
- Run your project.
|
|
||||||
|
|
||||||
env/bin/pserve development.ini
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ pyramid.debug_authorization = false
|
|||||||
pyramid.debug_notfound = false
|
pyramid.debug_notfound = false
|
||||||
pyramid.debug_routematch = false
|
pyramid.debug_routematch = false
|
||||||
pyramid.default_locale_name = en
|
pyramid.default_locale_name = en
|
||||||
mongo_uri = mongodb://localhost:27017/poc
|
mongo_uri = mongodb://poc_www:HenryPump1903@localhost:27017/poc
|
||||||
|
|
||||||
|
|
||||||
#---------- Pipeline Configuration ----------
|
#---------- Pipeline Configuration ----------
|
||||||
|
|||||||
Reference in New Issue
Block a user