By the way, how can you set the rails environment?<br><br><div class="gmail_quote">On 18 May 2010 09:45, Jordi Noguera Leon <span dir="ltr"><<a href="mailto:jordinoguera83@gmail.com">jordinoguera83@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Yeah, the first step was to create a staging environment. Also, I don't know much about virtual hosts, to make everything work with capistrano, all the paths should be in the form [your app dir]/current, right?<div>
<div></div><div class="h5"><br><br>
<div class="gmail_quote">On 18 May 2010 08:32, Matthew Rudy Jacobs <span dir="ltr"><<a href="mailto:matthewrudyjacobs@gmail.com" target="_blank">matthewrudyjacobs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

The git conversion should be simple.<br><br>Just go into the folder and;<br><br>$ git init<br>$ git add .<br>$ git commit -m "move to git"<br>$ git remote add origin git@theserver.com:therepo.git<br>$ git push origin master<br>



<br>regarding the move to Capistrano<br><br>I'd be inclined to add a new virtual host temporarily for "<a href="http://test.whatever.com" target="_blank">test.whatever.com</a>"<br>get the config correct<br>

then switch over once you're happy.<br>

<br>Also doing a cap deploy:cold doesn't always go right<br>so be prepared for some manual intervention<br><br><div class="gmail_quote"><div><div></div><div>On 18 May 2010 15:23, Jordi Noguera Leon <span dir="ltr"><<a href="mailto:jordinoguera83@gmail.com" target="_blank">jordinoguera83@gmail.com</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div>Hi, <div><br></div><div>I'm working in a project where there wasn't any kind of source control, I've finally convinced my client to use Git + Capistrano. What steps should I follow to setup this properly?</div>




<div><ol><li>Copy project directory to git directory</li><li>Create git</li><li>git checkout to my machine (I should be ignoring a folder with lots of images...)</li><li>Capify</li><li>Change virtual hosts (the current app lives in whatever/..., and I guess it should live in whatever/current/...)</li>




<li>move the app contents somewhere else</li><li>cap deploy:setup</li><li>move the all contents of the app to whatever/current</li><li>cap deploy</li></ol><div>Am I missing anything?</div><div><br></div><div>Thanks</div>



<div>
Jordi</div></div>
<br></div></div><div>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></div></blockquote></div><br>
<br>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>