How to deploy Genoscapist?
Code distribution
Clone the GitHub repository
$ git clone https://github.com/sderozier/genoscapist.git
Local deployment
To deploy Genoscapist application, a database is required.
- Create a virtual environment
$ python3 -m venv venv - Activate the virtual environment
$ . venv/bin/activate - Install Flask
$ pip install Flask - Install psycopg2
$ pip install psycopg2 - Export environment variables (development mode here)
$ export FLASK_APP=__init__.py
$ export FLASK_ENV=development - Configure the application by editing the config.py file
- Launch the Flask application
$ flask run
Genoscapist is accessible from the provided URL.
Apache WSGI deployment
Requirements
Files location for the example:
- Genoscapist GitHub repository in /home/deploy_app
- virtual environment in /home/deploy_app/venv
- Create a run.py file in /home/deploy_app directory that contains:
- Create a wsgi.py file in /home/deploy_app directory that contains:
- Create a genoscapist.conf file in /etc/httpd/conf.d directory that contains:
Genoscapist is accessible on http://[base_url]/genoscapist.