21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-05 18:25:09 +02:00
chexpire/INSTALL.md

33 lines
1.1 KiB
Markdown
Raw Normal View History

2018-05-24 13:46:20 +02:00
# Installation
## Rails configuration
2018-05-24 13:46:20 +02:00
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`
### Database
You can customize `config/database.yml` for your needs, but by default, Rails is looking for a `chexpire_development` database on localhost.
### Dependencies
Execute `# bundle install` to install Ruby dependencies.
Execute `# yarn install` to install Javascript dependencies.
### Local execution
If you want to start the Rails application manually, with a simple Puma configuration, you have to execute `# bundle exec rails server`.
2018-05-24 13:46:20 +02:00
## 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…).