Skip to content

Conversation

@vinyll
Copy link
Member

@vinyll vinyll commented Oct 9, 2017

No description provided.

@vinyll vinyll self-assigned this Oct 9, 2017
@vinyll vinyll requested a review from davidbgk October 9, 2017 13:46
## 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`.
Copy link
Contributor

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

Copy link
Member Author

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?

Copy link
Contributor

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 &"
Copy link
Contributor

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?

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.

3 participants