Sha256: 5d8f4d19553faa87e402807d75220a6741a743a7f8a8b05fd65a503cc2e2f825
Contents?: true
Size: 791 Bytes
Versions: 3
Compression:
Stored size: 791 Bytes
Contents
class Buildpacker def initialize end def pack pack_rails if File.exist? "bin/rails" puts "-----> Could not continue ... Launch Failed." end def pack_rails # Remove server.pid if it exists FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid" puts "-----> Performing bundle install ... " if system("bundle install --deployment --clean --without development test") puts "-----> Installing Javascript Dependencies & Pre-compiling Assets ... " if system("bundle exec rails assets:precompile", out: File::NULL) puts "done" puts "-----> Running Web Server ... " if system("god -c Godfile -D") puts "-----> Launched Application ... Success." end exit 0 end end end end buildpacker = Buildpacker.new buildpacker.pack
Version data entries
3 entries across 3 versions & 1 rubygems