mirror of https://github.com/Evolix/chexpire.git
Installation instructions
This commit is contained in:
parent
2f4bee55e1
commit
8c6a8354a3
|
@ -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…).
|
|
@ -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"
|
||||
|
|
|
@ -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'] %>
|
||||
|
|
Loading…
Reference in New Issue