Sha256: 894b83f4aa20fae8ea0ca9fb6ba06b7303c2a26c9f66ab83e2824c06a3156151
Contents?: true
Size: 799 Bytes
Versions: 1
Compression:
Stored size: 799 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("foreman start -f Procfile") puts "-----> Launched Application ... Success." end exit 0 end end end end buildpacker = Buildpacker.new buildpacker.pack
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smartcloud-0.0.81 | lib/smartcloud/grids/grid-runner/buildpacks/buildpacker.rb |