diff options
Diffstat (limited to '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  ---- | 
