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

Update README to include deployment notes.

parent 6d3b220a
......@@ -7,7 +7,7 @@
## openbabel
* `brew install cmake` for OSX
* install openbabel as described in its [documentation](
## rmagick
* `brew install imagemagick gs` for OSX
* `apt-get install libmagickcore-dev libmagickwand-dev` for linux
......@@ -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 ( 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)/" >> ~/.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