|
|
@ -50,13 +50,10 @@ DNS needs. |
|
|
|
%build |
|
|
|
%build |
|
|
|
# required config file for assets pre-compilation |
|
|
|
# required config file for assets pre-compilation |
|
|
|
cp config/database.mysql.sample.yml config/database.yml |
|
|
|
cp config/database.mysql.sample.yml config/database.yml |
|
|
|
bundle install --without development test |
|
|
|
bundle install --deployment --without development test |
|
|
|
|
|
|
|
|
|
|
|
# pre-compile assets |
|
|
|
# pre-compile assets |
|
|
|
bundle exec rake RAILS_ENV=production assets:precompile |
|
|
|
bundle exec rake RAILS_ENV=production assets:precompile |
|
|
|
rm -rf .bundle |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bundle install --deployment --without development test assets |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# fix wrong sheebang for unicorn |
|
|
|
# fix wrong sheebang for unicorn |
|
|
|
%if 0%{?fedora} >= 17 |
|
|
|
%if 0%{?fedora} >= 17 |
|
|
|