Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Conversation

@Ram-G
Copy link

@Ram-G Ram-G commented Jan 27, 2019

#17

Added install.sh which

  1. Copies source files to /srv
  2. Installs python and dependecies in a venv
  3. Copies and sets up the systemd file and service
  4. Launches the systemd service

This is slightly different from the existing deployment because this uses a virtualenv. Is that a good idea?

TODO:

  • Decide how to set up config and mongodb
  • Create user?
  • Some tests to ensure that service starts up correctly

Added install script which
1. Copies source files to /srv
2. Installs python and dependecies in a venv
3. Copies and sets up the systemd file and service
4. Launches the systemd service
# Setup venv
cd src/
python3 -m venv ./$VENV_NAME
source ./$VENV_NAME/bin/activate
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will create and activate a virtualenv, but I'm pretty sure Gunicorn won't use it and will still need dependencies installed system-wide.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants