Commit graph

103 commits

Author SHA1 Message Date
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
Paul Chavard
8ed80f6310 Do not deploy features.yml file 2018-08-21 10:24:57 +02:00
Paul Chavard
c95bd2d180 Enable env file on deploy 2018-08-16 12:16:51 +02:00
Paul Chavard
d93ed328b7 Do not share binstubs 2018-07-26 11:12:00 +02:00
Paul Chavard
a482855d5e Run yarn install on deploy 2018-07-26 10:51:37 +02:00
Paul Chavard
19503c8c75 Revert "Run yarn install during deploy"
This reverts commit 264338a495.
2018-07-25 17:57:28 +02:00
Paul Chavard
7579ae9903 Revert "Add yarn install task to mina"
This reverts commit d6000ca56c.
2018-07-25 17:57:18 +02:00
Paul Chavard
d6000ca56c Add yarn install task to mina 2018-07-25 17:17:58 +02:00
Paul Chavard
264338a495 Run yarn install during deploy 2018-07-25 17:06:28 +02:00
Pierre de La Morinerie
15511d0863 deploy: don't seed the database
The database should be seeded only when deploying on a fresh new
environment – like a local setup or a review app.

Persistent testing and production environment shouldn't be seeded.
2018-06-15 12:28:18 +02:00