5 ms·
gem install passenger passenger start no preference panes to install. No Apache configuration files to update. And Passenger eliminates the need to edit /etc/
by mickeyben 16y ago
gem install passenger
passenger start
no preference panes to install. No Apache configuration files to update. And Passenger eliminates the need to edit /etc/hosts. To get a Rack app running, just type a single command.
- sstephenson 16y agoYou conveniently omitted the step where you get an app running. And upgrading Passenger requires you to install a gem, then run a command, copy and paste a bunch of text into your Apache config file, and restart Apache.
- FooBarWidget 16y agoNot in the example he gave. He was using Phusion Passenger Standalone, i.e. not Phusion Passenger for Apache. Phusion Passenger Standalone does not require an external web server. It literally is just running 'passenger start'. No config files to edit. http://blog.phusion.nl/2010/07/01/the-road-to-passenger-3-technology-preview-3-closing-the-gap-between-development-and-production-rethinking-the-word-easy/ http://blog.phusion.nl/2010/07/01/the-road-to-passenger-3-te...
- clint 16y agoI did this and soon my computer was downloading and compiling nginx. When this finished, I got an error and it all failed: "* ERROR: Please install file-tail first: sudo gem install file-tail"… So I did and now its supposedly running on Port 3000 except I just get a 403 error when I visit it in my browser. The docs aren't very helpful either (http://www.modrails.com/documentation/Users%20guide%20Standalone.html#_usage http://www.modrails.com/documentation/Users%20guide%20Standa...). Update: I apparently missed the line about going to my application's root directory. I still didn't really like all the stuff that got downloaded and compiled on my machine, when all I would like to do is get started developing.
- FooBarWidget 16y agoI'm a Phusion Passenger developer. The goal for Phusion Passenger Standalone really is to have the command 'passenger start' Just Work(tm). After installing all required libraries, if it says it's running on port 3000 and it doesn't, then it's either a bug which we are dedicated to fix, or there might be something wrong with your system. The 'file-tail' thing is actually a bug (we should no longer have a requirement on file-tail). We've already fixed it in git master 3 days ago and the fix will be released very soon. Can you give me some more details about the 403 error? Do you see anything in the console or in the browser window that tells you more about the error?
- clint 16y agoSorry :( I made a reading error and I updated my post. It still seems like a lot of software and time to just start developing. What does passenger get me for developing locally that Pow doesn't? (I've never used Passenger before today).
- FooBarWidget 16y agoI can't comment on how Phusion Passenger Standalone differs from Pow because I've never used Pow. However I can tell you what Phusion Passenger Standalone's benefits are: 1. Phusion Passenger is currently the most popular production server for Ruby web apps (see ruby-toolbox.com and the last NewRelic survey). Phusion Passenger Standalone is practically the same as Phusion Passenger for Nginx. It's a good thing to have the development environment match the production environment as much as possible. Phusion Passenger actually comes in 3 editions: Phusion Passenger for Apache (integrates into Apache), Phusion Passenger for Nginx (integrates into Nginx) and Phusion Passenger Standalone (can run by itself, does not require an external web server). 2. Because Standalone is based on an Nginx core it's even fit for production. According to the Pow website it uses Nack, which according to its website is not ready for production. If 'passenger start' works for you locally then you can run the same thing in production. No need to learn how Apache and Nginx works. There are other things as well, but I have to go in a few minutes. Feel free to ask me more questions if you like.
- 16y ago
- jarin 16y agoThere are some drawbacks to using Passenger/Mongrel/Webrick for development though, especially when you need to test subdomains and/or SSL.
- JangoSteve 16y agoHow so? I've been using Passenger on my dev machine for over a year now. The original reason I installed Passenger on my dev machine was exactly because of how easy it was to get SSL and subdomains working; the app I was working on at the time had 100% SSL user logins, each routed to their own subdomains.
- jarin 16y agoYou're using it with Apache or Nginx though, right? Or were you able to get them working with Passenger Standalone?
- JangoSteve 16y agoAh yes, you are correct, with Apache.
- ptomato 16y agoI'm a huge passenger fan, but I should note that: * this is also a single command to get a rack app running once you have it installed * you can easily support multiple ruby versions/gemsets (otherwise you'd need to install/compile passenger for each) * appname.dev is easier than remembering which port all of your rails apps are running on. * you don't have to start each app manually each time.
- JangoSteve 16y ago* Not sure what you mean. * Passenger supports using various gemsets very easily using the setup_load_paths.rb file in the config of your app (though multiple ruby versions still seem to be a problem). * If you're using passenger, why do you have each app running on a different port? Using the Passenger Prefs Pane makes it trivially easy to have each app at its own appname.local URL (though, admittedly, installing an extra prefs pane, where Pow has it built in, gives bonus points to the latter). * Same with my last point. Passenger automatically handles the booting up or apps when you access their URL in the browser, just like Pow does. Of course, I'm guessing you don't have Passenger installed this way if each app has to run on a different port.
- ptomato 16y agoI should note that I'm mostly referring to the parent, which was referencing passenger standalone, which runs like a classic thin or mongrel.
- deleted 16y ago[deleted]