minad / olelo

Wiki with git backend
MIT License
241 stars 44 forks source link

Deploying with phusion passenger #17

Closed codingisacopingstrategy closed 14 years ago

codingisacopingstrategy commented 14 years ago

I’m trying to deploy with Phusion Passenger. Here are the steps I’m following, if anyone wants to try the same. Running into the first error now, probably a dependency thing (I’m new to ruby)?

environment: Ubuntu 9.10 running Ruby 1.8, installed the required gems.

I cloned the git-wiki repository Following http://www.modrails.com/documentation/Users%20guide.html#_deploying_a_rack_based_ruby_application I added a tmp and a public folder since they are required for passenger to function

Made a virtual host and rebooted apache

Visiting the application @ http://dev.liketightpants.net/ gives a passenger error page: no such file to load -- cgi/util

Is that a gem that I can install?

minad commented 14 years ago

cgi.rb is splitted in ruby 1.9, I changed it to require 'cgi'. fixed in 6d4e33d78ef195ffb6bd70f6a5f62445ae7d3afd. are there other issues with passenger?

codingisacopingstrategy commented 14 years ago

Great, it’s working now! Now you’ll find a base install for git wiki at that url :) Thanks for patching!

I do see an error message undefined method `image?' for #<MimeMagic:0x7fe23fc55188> (I’ve got mimemagic 0.1.2. installed)

minad commented 14 years ago

an update of mimemagic should do it

codingisacopingstrategy commented 14 years ago

getting the same message with the gem updated to 0.1.4

codingisacopingstrategy commented 14 years ago

Oops oh wait it’s gone. thanks!

edited in: After the update the home page (and only the home page) didn’t update though, still showing the error message and the original wiki-title (which I had since changed). Removing the rack cache in .wiki/cache/rack did the trick.

Conclusion: it looks like installing on passenger is a breeze. The only thing to take into account is that passenger requires a specific directory structure, as noted above.

I’ll try out what happens when I delete these specific folders (which are now just empty). edit: You actually need them.

niklas commented 14 years ago

for me the .rvm/bin/passenger_ruby threw an error to /var/log/apache2/error.log about "source command not found", thus not using 1.9.1 but system instead.

Just changed "source" and to "." and viola