Sha256: 7cb61addad1f267c10f44c48f0f42a6ae7a062ec6ef9813317aea359663687a3
Contents?: true
Size: 620 Bytes
Versions: 4
Compression:
Stored size: 620 Bytes
Contents
#!/usr/bin/env ruby require 'fileutils' include FileUtils # path to your application root. APP_ROOT = File.expand_path('..', __dir__) def system!(*args) system(*args) || abort("\n== Command #{args} failed ==") end chdir APP_ROOT do puts '== Installing dependencies ==' system! 'gem install bundler --conservative' system('bundle check') || system!('bundle install') puts "\n== Updating database ==" system! 'bin/rails db:migrate' puts "\n== Removing old logs and tempfiles ==" system! 'bin/rails log:clear tmp:clear' puts "\n== Restarting application server ==" system! 'bin/rails restart' end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
devise-2fa-0.4.1 | spec/dummy/bin/update |
devise-2fa-0.4.0 | spec/dummy/bin/update |
devise-2fa-0.2.1 | spec/dummy/bin/update |
devise-2fa-0.2.0 | spec/dummy/bin/update |