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

Update deploy script to be compatible with latest server #382

Merged
merged 3 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/malawi/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fabric==1.14.1
Fabric3==1.14.post1
4 changes: 3 additions & 1 deletion docs/systems-administration/common-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ Common System Administration Tasks

## Deploying Code

To deploy code you must first connect to the VPN. Then run:
Deploying code requires installing fabric3 (`pip install -r requrements/deploy/dev-requirements.txt`).

Then, to deploy you must first connect to the VPN. Then run:

```
fab malawi deploy
Expand Down
7 changes: 3 additions & 4 deletions fabfile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from fabric.api import *


VIRTUALENV_HOME = '/home/dimagi/.virtualenvs/cstock/bin'
VIRTUALENV_HOME = '/home/cstock/.virtualenvs/cstock/bin/'
PIP = f'{VIRTUALENV_HOME}/pip'
PYTHON = f'{VIRTUALENV_HOME}/python'

Expand All @@ -10,9 +10,8 @@ def malawi():
"""
Malawi configuration
"""
env.deploy_dir = '/home/dimagi/src'
env.hosts = ['[email protected]']
env.code_dir = f'{env.deploy_dir}/logistics'
env.hosts = ['[email protected]']
env.code_dir = '/home/cstock/www/cstock/code_root'
env.branch = "main"


Expand Down