Commit 8a4aa491 authored by Florian Hübsch's avatar Florian Hübsch
Browse files

Merge pull request #219 from ninjaconcept/update-readme

Update README to include deployment notes.
parents 6d3b220a a9188d9c
......@@ -17,6 +17,17 @@
* Execute `bundle install`.
* Execute `rake db:reset` (this creates and seeds the database).
# Deployment notes
The search feature uses the Postgres extension pg_trgm (http://www.postgresql.org/docs/9.3/static/pgtrgm.html). For the first installation on the production machine you have to install the `postgres-contrib` package in order to enable Postgres extensions.
Just restart Postgres after installing the package.
If you like to reset the database (after `cap production deploy`) you have to execute the following commands (under the assumption your production database is called `chemotion`)
* `RAILS_ENV=production bundle exec rake db:drop db:create`
* `sudo -u postgres psql -d chemotion -c "CREATE EXTENSION pg_trgm;"`
* `RAILS_ENV=production bundle exec rake db:migrate db:seed`
# JS Setup & Testing
* Install `nvm`: `brew install nvm && echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.profile`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment