Ensure to install dependency gems

This commit is contained in:
uu59 2014-06-03 15:02:29 +09:00
parent 9c8bcccdcd
commit ea31beff6d

View File

@ -6,5 +6,6 @@ dir = File.expand_path("../../", __FILE__)
ENV["BUNDLE_GEMFILE"] ||= File.join(dir, "Gemfile.production")
ENV["SECRET_KEY_BASE"] ||= SecureRandom.hex(64)
ENV["RAILS_ENV"] ||= "production"
system(*%W(bundle install))
system(*%W(bundle exec rake db:create db:migrate db:seed))
system(*%W(bundle exec rackup -E production #{dir}/config.ru))