-
Notifications
You must be signed in to change notification settings - Fork 0
added deployment task #2
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
base: master
Are you sure you want to change the base?
Conversation
| ## Deploying | ||
|
|
||
| In order to deploy to the staging server, you should have an SSH access | ||
| to the server with the _cafebabel_ user callable via the command `ssh cafebabel`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should explicitly use ssh cafebabel@cafebabel to avoid deploying using root
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've put user cafebabel in my ssh conf which makes it error proof.
Would you rather have it in your conf or type it explicitly + readme?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually at that point I would just hardcode cafebabel@ip to be explicit
| @echo "Fetching master branch and updating sources." | ||
| ssh cafebabel "${goto_src} && git fetch origin master && git checkout master && git reset --hard FETCH_HEAD" | ||
| ssh cafebabel "${goto_src} && pip install -r requirements.txt" | ||
| ssh cafebabel "${goto_src} && python app.py 0.0.0.0:5000 &" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So no gunicorn+nginx at that point?
No description provided.