arXlive front end using Flask, Zappa and AWS Lambda
To deploy:
yarn
from inside thearxlive-search
directory to install javascript modules- create and activate a virtual environment (conda venvs don't seem to work.
venv
is a good name as it will be ignored by git. It cannot be calledarxlive
) - install requirements:
pip install -r requirements.txt
- create an instance config in
instance/config.py
withFLASKS3_BUCKET_NAME = 'name of the static files bucket'
- build hierarxy, push static files to S3 and deploy to AWS Lambda with:
. deploy.sh
To run locally in development mode:
-
python run.py
in the root folder -
set
export CONFIG_MODE=production
to run in production mode with this method
Alternatively:
-
set
export FLASK_APP=arxlive
-
set
export FLASK_DEBUG=true
-
flask run
-
set
export FLASK_DEBUG=false
to run in production mode with this method