diff options
| author | Marc Florisson | 2014-02-27 09:57:14 +0100 | 
|---|---|---|
| committer | Marc Florisson | 2014-02-27 09:57:14 +0100 | 
| commit | abef90652ce84efd750d9a7f3e33f07ae1bba05c (patch) | |
| tree | 913c858de303ecb528a5a9282010a372c58749d1 | |
| parent | 925b51a3334ccd741d154a6a39d5ce01a3cc14c5 (diff) | |
| download | chouette-core-abef90652ce84efd750d9a7f3e33f07ae1bba05c.tar.bz2 | |
add assets precompile for installation described in README.md
| -rw-r--r-- | README.md | 11 | 
1 files changed, 9 insertions, 2 deletions
| @@ -83,8 +83,12 @@ Create [Postgres database user] (./doc/install/postgresql.md)  Create database and its schema  ```sh -RAILS_ENV=production bundle exec rake db:create -RAILS_ENV=production bundle exec rake apartment:migrate +RAILS_ENV=production bundle exec rake db:create apartment:migrate +``` + +Prepare static resources (assets) +```sh +RAILS_ENV=production bundle exec rake assets:clean assets:precompile  ```  The next step assume default path defined by following settings in file [production.rb](./config/environments/production.rb) are unchanged @@ -138,6 +142,9 @@ RAILS_ENV=production bundle exec rails server  This task may be added in system start up configuration.  Instead of using WEBrick, Rails application may be deployed on [Pushion Passenger](https://www.phusionpassenger.com/) with an [Apache](http://httpd.apache.org/) or [NGinx](http://nginx.com/) front-end, to make server faster and more robust. +Apache like NGinx can serve static resources +so, change parameter ```serve_static_assets``` to false in [production.rb](./config/environments/production.rb) +  Test  ---- | 
