Use crystal to start sinatra

This commit is contained in:
wchen-r7 2017-07-19 17:39:32 -05:00
parent 3ac074ad7c
commit fc27074c48
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,4 @@
io = IO::Memory.new
Process.run("cd /opt/sinatra && bundle install", shell: true)
code = %{require 'obfuscate'; Obfuscate.setup { |c| c.salt = 'sinatra'; c.mode = :string }; code = Obfuscate.clarify(File.read('.server')); eval(code)}
Process.run("cd /opt/sinatra && ruby -e \"#{code}\"", shell: true)