Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] #17 Deploy Script #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[WIP] #17 Deploy Script #27

wants to merge 1 commit into from

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants