Welcome Guest | Login

General deployment and development env. setup?

Hi,
A newbie to deploying Rails applications to live, I have a few questions that I would like to hear if any of you have comments to:

- I would like to have my SVN-repo on my local development-machine at home. What is the best / 'pretty good' practice in this connection; to have a SVN-repo at the development machine or to check in / out / commit to a SVN repo at the server (hostingrails) instead?

- When using Capistrano for deploying, what will the ideal process be? Dev. SVN -> Server SVN -> Capistrano deploy to live? Or Commit to server SVN -> Capistrano to live? Or even Commit to local SVN -> Capistrano to live?

I understand that basically, Capistrano is a client-side tool - and as such, I guess it will make most sense to have a local SVN-repo capified and deploy from there to the server?

Any help much appreciated,
/Bo

2008-06-20 04:44 AM

Having the svn repo on our server will be the best practice especially when you use the cap so the Capistrano scripts can make connections easily. When using Capistrano for deploying Dev. SVN -> Server SVN -> Capistrano deploy to live is the ideal  process.

2008-06-20 08:21 AM

Thank you and pardon me for my ignorance on this subject, but how would you then keep the local and the server SVN repos synchronised? That is; what would an ideal proces look like? Dev. SVN checkout -> Development -> SVN commit -> commit to remote SVN repo? -> Cap ?

Would this be an example? And how to go about committing to the second, remote SVN repo?

Thanks,
/Bo

2008-06-20 08:35 AM

As mentioned by the earlier tech keeping svn repo on our server will be the best practice. If you want to make any changes then please run "svn checkout" to your local machine. Here you can  make the necessary changes in this checked-out app version.

Then you can commit these changes made (local end) back to the svn repo on our server.

2008-06-20 03:13 PM

Regards,
Rahul

Hello Guest! In order to post you must be an active client with us, please log in or sign up.