Commit graph

112 commits

Author SHA1 Message Date
Colin Darie
77fb0553fc
chore: enable freeze string literals by comment 2024-08-22 09:26:48 +02:00
kleph
94fa247d8d Use the same env vars for setup and deploy 2022-04-08 10:45:44 +02:00
simon lehericey
5624e87867 add webserver file logic 2021-03-29 18:45:40 +02:00
simon lehericey
b19dc34cc1 fix deploy i_am_a_worker_test 2020-12-11 09:50:17 +01:00
clemkeirua
704cafc385 restart delayed_job only for workers 2020-12-10 15:12:05 +01:00
clemkeirua
7e085c657d specific deactivation of rubocop DS/ApplicationName rule 2020-07-23 16:20:16 +02:00
Paul Chavard
5005c54891 Add base cron job 2020-03-31 12:25:46 +02:00
simon lehericey
54d6d21c27 Add Pg statement timeout variable to allow long migration 2019-10-24 15:54:25 +02:00
Pierre de La Morinerie
97af31d54f app: rename references to betagouv/tps
Github has an automatic redirection, but better be clean.
2019-03-26 11:10:30 +01:00
simon lehericey
32281092e6 mina: reuse gem between deployment 2019-02-06 14:41:45 +01:00
Mathieu Magnin
55525af060 Add rake task to run after party with mina 2018-12-04 14:43:55 +01:00
Paul Chavard
6043e59937 Disable after party 2018-12-01 10:30:35 +01:00
Mathieu Magnin
804f0665e3 Re-enable releases cleanup 2018-11-22 18:26:18 +01:00
Mathieu Magnin
167aff30f4 Cancel cleanup 2018-11-21 16:28:02 +01:00
Mathieu Magnin
88b8c190f5 Cleanup releases after deploy 2018-11-21 14:35:00 +01:00
gregoirenovel
5b32638502 Order shared_dirs by alphabetic order 2018-10-24 16:00:49 +02:00
gregoirenovel
a90232e57b Order require statements by alphabetic order 2018-10-24 16:00:49 +02:00
gregoirenovel
f60ff02394 Improve readability 2018-10-24 16:00:49 +02:00
gregoirenovel
21028bd97b Extract a task to make things more atomic 2018-10-24 16:00:49 +02:00
gregoirenovel
1c55a38e81 Move variable definition to the top 2018-10-24 16:00:49 +02:00
gregoirenovel
4026984852 Move a comment in the comment block 2018-10-24 16:00:49 +02:00
gregoirenovel
7559653062 Make the comments-code order match 2018-10-24 16:00:49 +02:00
gregoirenovel
70a3b9737c Improve a comment 2018-10-24 16:00:49 +02:00
gregoirenovel
b9c91cbab4 Factorize some code 2018-10-24 16:00:49 +02:00
gregoirenovel
fda1218a5f Keep the same order between shared_dirs and setup 2018-10-24 16:00:48 +02:00
gregoirenovel
883c981165 Group single-line parameter definitions 2018-10-24 16:00:48 +02:00
gregoirenovel
db540471d4 Remove a duplicated comment 2018-10-24 16:00:48 +02:00
simon lehericey
d4b3f829b6 Deploy: update description 2018-10-24 12:22:33 +02:00
simon lehericey
c616f6e5b8 Deploy: improve layout 2018-10-24 12:22:33 +02:00
simon lehericey
6e8473e6c1 Deploy: move print and use puts 2018-10-24 12:22:33 +02:00
simon lehericey
a1d813aff4 Deploy: use fetch 2018-10-24 12:22:33 +02:00
simon lehericey
9ee1119656 Deploy: STAGE_NAME -> STAGE 2018-10-24 12:22:33 +02:00
Mathieu Magnin
8316ab8e51 When deploying read stage from environment 2018-10-24 12:22:33 +02:00
Mathieu Magnin
bffeeaf954 Configure mina for new infra 2018-10-24 12:22:33 +02:00
Pierre de La Morinerie
3d897ad488 deploy: fix after_party deployment
This can be tested locally (without running any SSH commands) using:

```shell
bundle exec mina deploy domain="test.domain" to=production --simulate`
```

This commit turns the after_party command from:

```
cd "/var/www/tps/current" && RAILS_ENV="production" bundle exec rake after_party:run
```

to:

```
RAILS_ENV="production" bundle exec rake after_party:run
```

which is more in line with how other commands are run.
2018-10-17 10:32:05 +02:00
Paul Chavard
d93f696935 Try to run after_party as rake task 2018-10-04 20:42:17 +02:00
Paul Chavard
22c132febe Fixing mina after_party:run 2018-10-04 20:08:59 +02:00
Paul Chavard
0927905d2e Fix deploy task 2018-10-04 19:41:11 +02:00
gregoirenovel
be5859af60 Improve the documentation in deploy.rb 2018-09-20 16:51:26 +02:00
gregoirenovel
90e7a5d276 Improve error messages 2018-09-20 13:03:42 +02:00
gregoirenovel
c445de9f83 Regroup definitions at the top of deploy.rb 2018-09-20 11:37:04 +02:00
gregoirenovel
6dbb916c6a Remove useless comments from deploy.rb 2018-09-20 11:37:04 +02:00
gregoirenovel
fd13f9dbb2 Remove default fallback on staging for the deploy destination
Explicit > implicit
2018-09-20 11:28:58 +02:00
gregoirenovel
ec545758c3 Improve deploy.rb readability 2018-09-20 11:26:25 +02:00
gregoirenovel
276cb55d9a Remove a useless instruction from deploy.rb 2018-09-20 11:25:40 +02:00
gregoirenovel
2f940eed6d Remove a useless comment from deploy.rb 2018-09-20 11:25:25 +02:00
Paul Chavard
0e2b7ec6e1 try to fix after_party on deploy 2018-08-30 12:51:28 +01:00
Paul Chavard
c67f8dcaaa Add after_party 2018-08-30 11:54:54 +01:00
Paul Chavard
5dcc74fcbe Stop using staging environement 2018-08-29 11:22:56 +02:00
Paul Chavard
1daaf96438 [ENV] Stop using shared config 2018-08-23 15:55:33 +02:00