Jump to content

Best way to sync between developement and live server


Recommended Posts

I am new to web development, I recently started freelancing online for a few clients and got some projects lined up.

 

TLDR: I want an easy to manage my web dev projects (hosted on my laptop) and sync them with my webserver online.

 

Now here is my situation:

 

I have a laptop where I do my work and test it on, this laptop runs Ubuntu 10.04.

I have a VPS online, which runs CentOS, it is mainly used to upload the demo work of my projects so I can show them to my clients and blow there minds away.

 

My problem here is:

 

The time I am wasting, and the effort in uploading and updating everything I do once I am done with it on my laptop, its pretty irritating, I have to tar everything up, upload it to the server, put it in the right place, make sure all permissions are correct, upload the MySQL database, import it to the VPS, edit the config files to match the new username and password.. etc etc..

 

What I really want to have:

 

Is an easier way to do all that, I want to be able to press a button or type a command, that will automatically sync my laptop files with the right directory on my VPS. so it cant be just a simple way where it just simply uploads the files, it needs to be able to manage each project separately.

 

I can't wait to read your comments, hopefully someone will give me a detailed solution to what I need to do, thanks!

 

There's not much learning about Netbeans Subversion plugin. Once you learn how SVN works, you notice that the plugin just provides you with easy access to basic SVN commands, plus some eye candy like highlighting modified files/code, or really cool diff view.

RSync:

 

#  can update whole directory trees and filesystems

# optionally preserves symbolic links, hard links, file ownership, permissions, devices and times

 

http://samba.anu.edu.au/rsync/features.html

Ok I managed to get the SVN repo working locally, but now it still wont solve my problem, I need to sync it remotely.. how can I do that?

 

I cannot connect from my server to my laptop, so syncing from my laptop repo on the server wont really work, I need my laptop to connect to my server and update the repo files from the laptop, to the server..

I have got the remote server working as well thanks to

 

http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-minutes/

 

:) all good now, thanks for everyones help. now I can develop and implement much faster and better..

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.