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

[platform, crons-python] deploy non-GAE projects, starting with Crons #317

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

realkosty
Copy link
Collaborator

@realkosty realkosty commented Nov 8, 2023

Corresponding empower-config PR: https://github.com/sentry-demos/empower-config/pull/12

Testing

https://demo.sentry.io/crons/?project=4505197623705600&statsPeriod=1h&timeWindow=24h

./deploy.sh --env=production crons-python
env = production
You are about to do a deployment to production, but current code is different from HEAD at
    sentry-demos/application-monitoring AND/OR your production.env is different from production.env in
    sentry-demos/application-monitoring-config:
 bin/validate_env.sh            |  8 ++++----
 bin/validate_project.sh        |  6 +++---
 crons-python/crontab.template  |  1 +
 crons-python/deploy_project.sh | 21 +++++++++++++--------
 crons-python/main.py           | 15 ++++++++++-----
 crons-python/validate_env.list |  5 +++++
 deploy.sh                      | 10 +++++++++-
 ... (4 more lines)
Type 'yes, deploy to production' to continue... yes, deploy to production
|||
||| ./deploy.sh: crons-python
|||
Requirement already satisfied: sentry-sdk==1.23.0 in ./env/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (1.23.0)
Requirement already satisfied: certifi in ./env/lib/python3.10/site-packages (from sentry-sdk==1.23.0->-r requirements.txt (line 1)) (2023.7.22)
Requirement already satisfied: urllib3>=1.26.11 in ./env/lib/python3.10/site-packages (from sentry-sdk==1.23.0->-r requirements.txt (line 1)) (1.26.18)

[notice] A new release of pip is available: 23.0.1 -> 23.3.1
[notice] To update, run: pip install --upgrade pip
Checking ssh connection can be established...
Checking state of current deployment...
Copying code to remote directory...
Code copied.
No need to install requirements, because no changes to requirements.txt, env exists on remote host and is not empty.
EXISTING crontab:

*/5 * * * * /home/kosty/empower-crons-python/run.sh
---
UPDATED crontab:

*/5 * * * * /home/kosty/empower-crons-python/run.sh
---
Done. New code should be picked up when cron job runs next time.

@realkosty realkosty force-pushed the auto-deploy-non-gae branch 6 times, most recently from 2707656 to 2e8d0ae Compare November 8, 2023 05:01
@realkosty realkosty marked this pull request as ready for review November 8, 2023 16:44
@realkosty realkosty force-pushed the auto-deploy-non-gae branch from 2e8d0ae to ad62bc0 Compare November 8, 2023 16:47
@realkosty realkosty merged commit c3deed1 into master Nov 8, 2023
1 check passed
@realkosty realkosty deleted the auto-deploy-non-gae branch November 8, 2023 20:03
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