25 Commits

Author SHA1 Message Date
4b28f3f5f1 [CI] update postgresql version to match staging/pro (#745) 2024-05-03 19:53:36 +02:00
9b957d0587 remove staging environment + force STORAGE_PROVIDER=local in Docker production test 2024-02-13 19:33:38 +01:00
b925110ecb Adds a production ready docker environment (#730) 2024-02-12 23:50:29 +01:00
afafeaf38a TravisCI -> GH Actions (#648) 2023-03-14 22:10:02 +01:00
e572437f11 Remove next environment
It was used while migration the production server and since this one and
production configs are almost exact copies (just rails_env differs) it's
no longer needed.

And this brings simplicity back to this repo.

The most noticeable change is the removal of `url` from production's
database config as DATABASE_URL got removed in
https://github.com/coopdevs/timeoverflow-provisioning/pull/21 two years
ago and it's true in production:

```
timeoverflow@timeoverflow-production:~$ env | grep DATABASE
DATABASE_NAME=xxx
DATABASE_USER=xxx
DATABASE_PASSWORD=xxx
```
2020-01-22 12:51:53 +01:00
5a607e9f0b Replace DATABASE_URL with DATABASE_NAME
We used to connect to it through the PostgreSQL URL but that ENV var is
no longer present in the server and we have `DATABASE_NAME` instead.
That's what we already used successfully with the `next` environment.

This is required to deploy using the `production` environment or the app
won't be able to connect to the DB.
2020-01-21 17:54:53 +01:00
268bc0dfd2 Add next.timeoverflow.org Capistrano deploy
This is the upgraded server we are setting up to host the app. Time to
deploy and start testing! 🎉

The Capistrano environment is tightly coupled with Rails environments so
we need to add a new one called `next`.
2019-11-20 20:32:16 +01:00
cb28bce4c6 Ubuntu Bionic 2019-09-20 15:37:48 +02:00
4c45cf662e Fix database configuration 2018-05-22 16:33:24 +02:00
7f498c1a4f fix test db config 2018-03-14 10:32:56 +01:00
3b9d03b4ce Add default DB name for staging 2018-01-31 10:54:54 +01:00
43e8105782 Add staging environment 2018-01-31 10:41:24 +01:00
ec4cce279d Link to the wiki 2016-03-24 11:47:12 +01:00
c91fb66504 Use --skip-worktree to have local versions of files 2016-03-24 10:50:41 +01:00
b4233a227e Add comment on how to keep local changes on tracked files 2016-03-24 10:41:09 +01:00
1722d635b0 Much simpler database config 2016-03-24 10:11:50 +01:00
8878a81774 Rails complains when the database.url key is not an url 2016-03-24 09:20:43 +01:00
09cd9bee2d Add production configuration to database.yml 2016-03-22 18:59:49 +01:00
747b165d4b Added reasonable defaults for database.yml 2016-03-22 18:05:06 +01:00
bc5f05f6dc An empty database.ym is maybe needed by some library 2016-03-03 01:27:36 +01:00
31f2fb7db3 Moved database.yml. It's better to use just a DATABASE_URL environment variable 2016-03-03 00:25:27 +01:00
4d95882c78 Added ENV-friendly database.yml file.
One can set the DATABASE_URL variable, which will set up the whole
connection, or use one or more of:
- DATABASE_ADAPTER
- DATABASE_HOST
- DATABASE_PORT
- DATABASE_NAME
- DATABASE_USER
- DATABASE_PASSWORD

Each of them will just override a specific entry of the default
configuration, which is under the `"defaults"` key.

In a dev machine, one could probably just set DATABASE_USER and
DATABASE_PASSWORD. In a virtual server, the easiest way is to provide
DATABASE_URL. In heroku and similar providers, this file will be
overwritten.
2013-10-29 20:36:33 +01:00
203652ef4c Add seed_fu and better seed data 2013-05-13 01:59:59 +02:00
1729961f92 Translation support.
Better user form, in a popup. Needs to be compatible with editing of existing user…
2013-03-08 02:41:37 +01:00
fbddf419fe inital app skeleton 2012-10-24 10:04:29 +02:00