ruby - Where do i have to start the service 'rackup' for sinatra while using rvm on ubuntu -
i developoing webapp in ide rubymine on ubuntu , installed gem sinatra gemsets write rest-api webapp. have little start problem because dont know should write 'rackup' command after created app.rb , config.ru. ubuntu doesn't know rackup because of rvm. tells me should install ruby-rack isn't sinatra supposed have on board? problem if gem rack 2.0.1 installed in same gemset?
i have tried start rackup system terminal. did not work.
you can start sinatra rack loading sinatra app ruby in command line:
=>ruby app.rb
a config.ru file necessary if you're trying weird rack or deploying app heroku or other service handles own rack.
Comments
Post a Comment