Installation instructions

This commit is contained in:
Colin Darie 2018-05-24 13:46:20 +02:00
parent 2f4bee55e1
commit 8c6a8354a3
No known key found for this signature in database
GPG Key ID: 4FB865FDBCA4BCC4
3 changed files with 18 additions and 19 deletions

18
INSTALL.md Normal file
View File

@ -0,0 +1,18 @@
# Installation
## Configuration
After cloning this repository, you have to create and edit a few files from example files for your local development configuration :
- `config/database.yml`
- `config/chexpire.yml`
- `config/secrets.yml`
## Deployment
**staging** and **production** environments are preconfigured.
### Capistrano
If you want to use capistrano for deployment, create `config/deploy/config.yml` from the example file, and use the `to_staging` and/or `to_production` file.
As you created the config development files above, you'll have to do the same on the staging and production servers ( `shared/config/database.yml` etc…).

View File

@ -1,14 +1,6 @@
default: &default
mailer_default_from: "from@example.org"
production:
<<: *default
host: "example.org"
staging:
<<: *default
host: "staging.example.org"
development:
<<: *default
host: "chexpire.local"

View File

@ -30,12 +30,6 @@ test:
url: <%= ENV['DATABASE_URL'] %>
staging:
<<: *default
database: chexpire_staging
username: chexpire
password: <%= ENV['CHEXPIRE_DATABASE_PASSWORD'] %>
# As with config/secrets.yml, you never want to store sensitive information,
# like your database password, in your source code. If your source code is
# ever seen by anyone, they now have access to your database.
@ -55,8 +49,3 @@ staging:
# production:
# url: <%= ENV['DATABASE_URL'] %>
#
production:
<<: *default
database: chexpire_production
username: chexpire
password: <%= ENV['CHEXPIRE_DATABASE_PASSWORD'] %>