Open terryg opened 10 years ago
@terryg Sorry about that. There's a fault in the default permissions set for rvm
, we were planning on pushing new stacks in the coming days, so I'll bundle a fix for this in the ruby
stack.
In the meanwhile, run this command once and you should be good :
sudo chmod o+rw -R /usr/local/rvm/
This fixes the permission issues with rvm
.
After than I can run sinatra
with no issues, using this sample code :
require 'sinatra'
get '/' do
'Hello world!'
end
set :bind, '0.0.0.0'
Make sure that your server binds to 0.0.0.0
so it can be accessed externally.
@terryg Let me know if this helps.
Thanks for reporting this and sorry for the inconvenience.
Thanks @AaronO! Did you run this via Project -> Run or directly in the Terminal? Can you share the Procfile? I'm still getting the "rvm use ruby" first error.
@AaronO thanks for posting the solution, I got my gems installed and my rails app working
\ Here's my experience with Ruby on Rails **
I'm getting the following when I select Project -> Run:
I've executed 'rvm use ruby' in the Terminal, but I still get the same error.
I've also tried 'bundle exec rackup config.ru -p 5000' in the Terminal, then I get gem errors. 'bundle install' helped with some gems, but compiling the postgres gem failed.
I ran 'sudo apt-get install -y postgresql', that worked.
'bundle install' still failing:
'sudo bundle install' doesn't work:
I'd be happy to RTFM, but there doesn't seem to be any content under the "Autorun" topic: http://help.codebox.io/ide/autorun.html
\ And here is a try at Sinatra ***