Skip to content

Commit

Permalink
Merge pull request #2 from p2m2/dev_session
Browse files Browse the repository at this point in the history
20240409b
  • Loading branch information
ofilangi authored Apr 9, 2024
2 parents 37acc8f + 122e472 commit 6a9ad4c
Show file tree
Hide file tree
Showing 6 changed files with 346 additions and 193 deletions.
2 changes: 2 additions & 0 deletions .flaskenv
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FLASK_APP = app
FLASK_ENV=development
FLASK_DEBUG = True
FLASK_TESTING = True
FLASK_RUN_HOST="0.0.0.0"
FLASK_RUN_PORT="5000"
6 changes: 6 additions & 0 deletions .flaskenv.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FLASK_APP = app
FLASK_DEBUG = False
FLASK_TESTING = False
FLASK_RUN_HOST="0.0.0.0"
FLASK_RUN_PORT="80"
FLASK_ENV=production
10 changes: 8 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A simple HTML interface for converting RAW format to MzML, MzXML, and MGF files.
```bash
python3 -m venv env
. env/bin/activate
pip3 install flask docker python-dotenv
pip3 install flask docker python-dotenv flask-session cachelib python-memcached
```

### Configuration
Expand All @@ -24,8 +24,10 @@ Edit `.flaskenv` to configure the Flask environment variables.
```
FLASK_APP = app
FLASK_DEBUG = False
FLASK_TESTING = False
FLASK_RUN_HOST="0.0.0.0"
FLASK_RUN_PORT="80"
FLASK_ENV=production
```

### Run service
Expand All @@ -39,7 +41,11 @@ flask run

```bash
sudo su root
source env/bin/activate

python3 -m venv env
. env/bin/activate
pip3 install flask docker python-dotenv

nohup flask run > log.txt 2>&1 &
```

Expand Down
Loading

0 comments on commit 6a9ad4c

Please sign in to comment.