blob: 7606fd6c9dfab4d852fb6aef9824505aba6c9d51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env ruby
def system!(*args)
system(*args) || abort("\n== Command #{args} failed ==")
end
Dir.chdir File.expand_path('..', __dir__) do
system! 'bundle install'
system! 'cp config/database.yml.sample config/database.yml' unless File.exist?('config/database.yml')
system! 'bin/rails db:prepare'
system! 'bin/rails log:clear tmp:clear'
system! 'bin/rails restart'
end
|