arXlive front end using Flask, Zappa and AWS Lambda
To deploy:
yarnfrom inside thearxlive-searchdirectory to install javascript modules- create and activate a virtual environment (conda venvs don't seem to work.
venvis 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.pywithFLASKS3_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.pyin the root folder -
set
export CONFIG_MODE=productionto run in production mode with this method
Alternatively:
-
set
export FLASK_APP=arxlive -
set
export FLASK_DEBUG=true -
flask run -
set
export FLASK_DEBUG=falseto run in production mode with this method