Skip to content

Commit e11aecf

Browse files
committed
Added info about switching to production environment.
1 parent 1e2345a commit e11aecf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,20 @@ If you get something like 'Command not found: gem', then you need to install Rub
3838
If the 'bundle install' fails with 'checking for sqlite3.h... no', you have to install the sqlite3 packages for your operating system. For Ubuntu, the command is:
3939

4040
sudo apt-get install sqlite3 ruby-sqlite3 libsqlite3-ruby libsqlite3-dev
41+
42+
## Other Information
43+
44+
### If you want to switch to 'production' environment...
45+
46+
Remember to precompile your assets before starting the server with:
47+
48+
export RAILS_ENV=production
49+
bundle exec rake assets:precompile
50+
51+
If you don't do this in 'production' environment, you will get an error similar to:
52+
53+
We're sorry, but something went wrong.
54+
55+
and in your logs:
4156

57+
ActionView::Template::Error (application.css isn't precompiled):

0 commit comments

Comments
 (0)