Skip to content

Commit

Permalink
Backup and recreate passenger.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
sbleon committed Dec 22, 2011
1 parent 5a2aaa6 commit 0f281a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/stack/apache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@
post :install, 'apt-get install -y libcurl4-gnutls-dev' # Compilation dependency for apache module
post :install, 'echo -en "\n\n\n\n" | sudo passenger-install-apache2-module'

# Create the passenger conf file
# SET UP CONFIG FILE
# set up directory
post :install, 'mkdir -p /etc/apache2/extras'
# move old file out of the way
post :install, 'rm -rf /etc/apache2/extras/passenger.conf.moved_by_sprinkle'
post :install, 'mv /etc/apache2/extras/passenger.conf /etc/apache2/extras/passenger.conf.moved_by_sprinkle'
# recreate file
post :install, 'touch /etc/apache2/extras/passenger.conf'
post :install, 'echo "Include /etc/apache2/extras/passenger.conf"|sudo tee -a /etc/apache2/apache2.conf'

Expand Down

2 comments on commit 0f281a6

@benschwarz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All your changes look pretty good… are you done making changes yet? Hows about a pull request?

@sbleon
Copy link
Owner Author

@sbleon sbleon commented on 0f281a6 Dec 22, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Ben. I'm still working out some kinks, but I'll definitely submit a pull request once I'm done. There's some cleanup that I'd like to do too (not repeating the paths of the config files, etc).

I've got the stack installing successfully on a 32-bit Lucid Lynx VirtualBox, but apache is not automatically starting for some reason. It also takes about 30 minutes to run on my i7 MBP, which is really too long. I think most of it is compiling REE and git. I'm not sure what to do about that yet.

Please sign in to comment.