ShellScripter
2010-Sep-06 20:28 UTC
Deployment with nginx + mod_rails ( a.k.a phusion passenger)
Hi , all there. My project now is under the deployment phase , and as the title mentioned i have decided to use the nginx + mod_rails for my deployment. I set up the environment in CentOS 5 and using the Ruby Enterprise Edtion (REE) , rails new myApp , and see the Rails welcome page , i check the rails environment and phsion passenger throw these for me : Error message: Permission denied - /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp/ Gemfile.lock Exception class: Errno::EACCES Application root: /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp i thought that was a problem of permission , so i used this command: sudo chmod +rx /opt/ruby-enterprise-1.8.7-2010.02/ however , this didn''t work. i checked using the bundle: paradigmer@ShellSystem:/opt/ruby-enterprise-1.8.7-2010.02/bin/myApp$ ./ b check /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ bundler-1.0.0/lib/bundler/definition.rb:184:in `initialize'': Permission denied - /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp/ Gemfile.lock (Errno::EACCES) ./b is a the (ln) Anyone got the idea for this ??? Thank for ur time ! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
radhames brito
2010-Sep-06 21:26 UTC
Re: Deployment with nginx + mod_rails ( a.k.a phusion passenger)
why is your app insede the ree folder? are you using capistrano? create a folder at /var name it www and setup deployment with capistrano. /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp/ <----- why is you app in there? On Mon, Sep 6, 2010 at 4:28 PM, ShellScripter <chengjhong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi , all there. > > My project now is under the deployment phase , and as the title > mentioned > i have decided to use the nginx + mod_rails for my deployment. > > I set up the environment in CentOS 5 and using the Ruby Enterprise > Edtion (REE) > , rails new myApp , and see the Rails welcome page , i check the rails > environment > and phsion passenger throw these for me : > > Error message: > Permission denied - /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp/ > Gemfile.lock > Exception class: > Errno::EACCES > Application root: > /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp > > i thought that was a problem of permission , so i used this command: > > sudo chmod +rx /opt/ruby-enterprise-1.8.7-2010.02/ > > however , this didn''t work. i checked using the bundle: > > paradigmer@ShellSystem:/opt/ruby-enterprise-1.8.7-2010.02/bin/myApp$ ./ > b check > /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ > bundler-1.0.0/lib/bundler/definition.rb:184:in `initialize'': > Permission denied - /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp/ > Gemfile.lock (Errno::EACCES) > > ./b is a the (ln) > > Anyone got the idea for this ??? > > Thank for ur time ! > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
ShellScripter
2010-Sep-07 16:06 UTC
Re: Deployment with nginx + mod_rails ( a.k.a phusion passenger)(solved)
Because that was a rapid test project .. i have got the answer , i thought it was my problem when commanding ... $ sudo chmod +x opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/ gems/bundler-1.0.0/lib/bundler/definition.rb $ sudo ./b check // b = bundle Gemfile satisfied ~~ thx for ur time , and sorry for my mistake T_T On 9月7日, 上午5時26分, radhames brito <rbri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> why is your app insede the ree folder? are you using capistrano? create a > folder at /var name it www and setup deployment with capistrano. > > /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp/ <----- why is you app in > there? > > > > On Mon, Sep 6, 2010 at 4:28 PM, ShellScripter <chengjh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi , all there. > > > My project now is under the deployment phase , and as the title > > mentioned > > i have decided to use the nginx + mod_rails for my deployment. > > > I set up the environment in CentOS 5 and using the Ruby Enterprise > > Edtion (REE) > > , rails new myApp , and see the Rails welcome page , i check the rails > > environment > > and phsion passenger throw these for me : > > > Error message: > > Permission denied - /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp/ > > Gemfile.lock > > Exception class: > > Errno::EACCES > > Application root: > > /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp > > > i thought that was a problem of permission , so i used this command: > > > sudo chmod +rx /opt/ruby-enterprise-1.8.7-2010.02/ > > > however , this didn''t work. i checked using the bundle: > > > paradigmer@ShellSystem:/opt/ruby-enterprise-1.8.7-2010.02/bin/myApp$ ./ > > b check > > /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ > > bundler-1.0.0/lib/bundler/definition.rb:184:in `initialize'': > > Permission denied - /opt/ruby-enterprise-1.8.7-2010.02/bin/myApp/ > > Gemfile.lock (Errno::EACCES) > > > ./b is a the (ln) > > > Anyone got the idea for this ??? > > > Thank for ur time ! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.