15 Commits

Author SHA1 Message Date
Javi Martín
8aa113a47c Unify deploy secret keys for the main server
We were using `server` on staging but `server1` and `server2` on
preproduction and production.

The reason behind it is we've always used one server on staging but
sometimes we've used several servers on preproduction and production.

However, this is a bit of a mess on installations which have only one
server on preproduction or production and need to use the `server` key
for the staging environments but `server1` for other environments.

So, in order to keep compatibility with existing Consul installations,
we're now allowing either `server` or `server1` on any environment.
2023-03-21 19:01:28 +01:00
Julian Herrero
1b683ad0da Allow deploying a specific branch to production
We could also use the deploy-secrets file; here we use `ENV["branch"]`
for consistency with other environments.
2020-03-09 13:16:47 +01:00
Javi Martín
82e96edf1f Remove duplication in deploy environment files
Deploy environment files were loaded after config/deploy.rb was loaded,
meaning if we used settings like `deploy_to` or `current_path` to set
variables inside the config/deploy.rb file, we'd be using the default
settings instead of the ones dictated by the deploy environment files.
2019-11-12 20:20:45 +01:00
Javi Martín
1f4f70b4a9 Remove redundant stage settings
These files are only loaded when the stage already has the value set
inside them, so we don't need to set it again.

On the other hand, the `rails_env` setting is configured in the
`config/deploy.rb` file.
2019-11-12 20:20:45 +01:00
Javi Martín
b5b07bccd3 Apply PercentLiteralDelimiters rubocop rule 2019-09-10 20:02:15 +02:00
voodoorai2000
4f4769062a Use a single server by default
Capistrano configuration is prepared to deploy to multiple servers

For now assuming that we are going to use a single server for everthing (app, db, cron jobs, queue system, etc)
2018-09-21 15:34:40 +02:00
voodoorai2000
8cfcc7e693 Use master as the default deploy branch
It's a good practice to use a stable branch for deployments, but not all forks have this branch configured

Using master as the default branch for now
2018-09-21 15:32:41 +02:00
rgarcia
d0b0782c46 sets only one server to run delayed jobs 2016-12-28 21:24:56 +01:00
kikito
44b5ea6018 first try at integrating whenever and capistrano 2015-09-11 14:23:41 +02:00
Juanjo Bazán
a8f7611b01 changes branch for production deployments 2015-09-04 18:56:40 +02:00
rgarcia
908a2aca55 comments out pending server 2015-09-03 22:03:59 +02:00
rgarcia
42b54119d2 updating production config for multiple serversg 2015-09-03 17:54:54 +02:00
rgarcia
efecc697db adds second server for production 2015-09-03 12:45:02 +02:00
Manuel Maldonado
4b501ee46b Capistrano recipe 2015-08-12 01:36:42 +02:00
Juanjo Bazán
808f0fcfbb adds capistrano's deploy configuration and scripts 2015-08-07 12:17:18 +02:00