diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..0e805cb --- /dev/null +++ b/INSTALL.md @@ -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…). diff --git a/config/chexpire.example.yml b/config/chexpire.example.yml index ea09ec6..0b133c0 100644 --- a/config/chexpire.example.yml +++ b/config/chexpire.example.yml @@ -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" diff --git a/config/database.example.yml b/config/database.example.yml index 3c95fb3..05bfcd1 100644 --- a/config/database.example.yml +++ b/config/database.example.yml @@ -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'] %>