# Deploying to a mini

**URL:** <https://www.ruby-forum.com/t/deploying-to-a-mini/104980>\
**Category:** Deployment\
**Created:** [May 24, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/deploying-to-a-mini/104980 "2007-05-24T16:23:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Ballantyne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@Scott\_Ballantyne](https://www.ruby-forum.com/u/Scott_Ballantyne)\
**Post date:** [May 24, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/deploying-to-a-mini/104980/1 "2007-05-24T16:23:15Z")

</div>

I have a mac mini colocated, and I’m having a heck of a time automating  
deployment. I was wondering if anyone has had success with apache2 in  
front  
of a pack of mongrels on a mini. Most of the configurations that I have  
found are for lighty. However, I’m more familiar with apache and would  
prefer that. Please advise.

---

<div class="post-metadata">

**Author:** ![Scott\_Ballantyne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@Scott\_Ballantyne](https://www.ruby-forum.com/u/Scott_Ballantyne)\
**Post date:** [May 25, 2007, 3:07am UTC](https://www.ruby-forum.com/t/deploying-to-a-mini/104980/2 "2007-05-25T03:07:46Z")

</div>

What specific issues are you having?

---

<div class="post-metadata">

**Author:** ![Scott\_Ballantyne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@Scott\_Ballantyne](https://www.ruby-forum.com/u/Scott_Ballantyne)\
**Post date:** [May 25, 2007, 3:14am UTC](https://www.ruby-forum.com/t/deploying-to-a-mini/104980/3 "2007-05-25T03:14:47Z")

</div>

Originally, I was getting svnadmin not found, and mysql not found, but  
they  
were in the path. But I think I may have figured it out. found this  
little  
morsel.

> Then there’s the fix to get Capistrano’s remote tasks to work with the  
> Darwin Ports environment. These  
> tasks execute the command directly via ssh (they don’t log in to a full  
> shell, I’m not sure what the term  
> is for that). It’s like executing ssh removed\_email\_address@domain.invalid “pwd” and it doesn’t get  
> the full environment you’d get when  
> logging into a shell. It gets a very restricted environment that you can’t  
> normally change. So you must  
> change a setting for sshd to allow yourself to setup extra environment  
> variables for these ssh’ed commands.

> So open /etc/sshd\_config and make sure the line:

> PermitUserEnvironment yes

> …exists and is uncommented. Now set up the custom environment for your  
> user (the user you deploy as) by \>creating the file ~/.ssh/environment  
> and  
> adding:

> PATH=/opt/local/bin:/opt/local/sbin:/opt/local/apache2/bin:/bin:/sbin:/usr/bin

> That’s it! Although I think you have to restart sshd by toggling Remote  
> Login off and on in Sharing preferences or \>rebooting hte machine.  
> [Small Room Software || Tom Riley](http://www.smallroomsoftware.com/articles/2006/2/26/setting-up-ruby-on-rails-and-fastcgi-on-mac-os-x-server)

seems to take care of that problem. Now I just have to get apache  
pointed at  
rails and I should be good.

Scott
