If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / shop maintenance strategies - to keep local and remote shop versions synchronized?

shop maintenance strategies - to keep local and remote shop versions synchronized?

Locked

Started by dause on 29 Oct 2008, 2:32 PM · Views: 1,950

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
29 Oct 2008, 2:32 PM
#1
dause avatar

dause

New Zenner

Join Date:
Sep 2008
Posts:
33
Plugin Contributions:
0

shop maintenance strategies - to keep local and remote shop versions synchronized?

Hi,

Before I go online with my shop I need to find out how to best keep the local development version synchronized with the live shop on the remote server.

  1. I am planning to do all catalog related work on the local copy and then import the changes to the remote server.
  2. I also need to export all customer related data from the remote server for backup reasons. I have in mind to send the encrypted dump as a daily email to myself.
  3. thirdly I will most probably have to add some functionality to the shop after going online. All modifications will be tested on the local copy and then moved over to the remote server.

Which tools are you using for these tasks?
Currently I am using mysqldump to export selected tables and mysqladmin to import the changes.
I am using PDT eclipse for php development and WinSCP to keep the local and remote copies of the shop folder synchronized. I have to admit I am not very happy with WinSCP since it requires too much input from my side. Is there a tool that works more reliably? (automated reconnect, don't try to overwrite files that are write protected on the remote server)

Thanks for any comments and recommendations!

Andreas

29 Oct 2008, 2:56 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: shop maintenance strategies - to keep local and remote shop versions synchronized?

I like Notepad++ for PHP file editing. I have heard that Eclipse is good - maybe better, not sure what all it does.
Filezilla works well for FTP. It does have one-click reconnect; it may be able to be set to not even try to overwrite protected files (I haven't tried for that.)

phpMyAdmin works for exporting and importing db contents.

29 Oct 2008, 7:11 PM
#3
dause avatar

dause

New Zenner

Join Date:
Sep 2008
Posts:
33
Plugin Contributions:
0

Re: shop maintenance strategies - to keep local and remote shop versions synchronized?

gjh42:

I like Notepad++ for PHP file editing. I have heard that Eclipse is good - maybe better, not sure what all it does.
Yep, I have used Scintilla which is very similar to notepad++ and also PSPad in the past for php editing.
But then had I never worked with a script as large as zen-cart. I quickly became lost with that huge script and found it next to impossible to find out all the interdependencies within the code.
I then decided to give eclipse a try and it is just great.
The installation is a breeze (just unpack the downloaded archive anywhere on your computer and you are ready to go.)
Eclipse PDT is very stable and it has so many invaluable features that I can't even give an overview. Here are some links instead:
http://www.eclipse.org/pdt/
http://www.zend.com/en/community/pdt
There is a debugger included (actually you can choose among two different debuggers that are preconfigured)
Setting up the debugger was a bit of a hassle but that time was well spent. Using the debugger it is so much easier to understand what is actually going on in the code. You can set breakpoints or step through the code. hovering over varaiable names will display the current variable value and all in all it feels like looking at the code with X-ray glasses :cool:

Filezilla works well for FTP. It does have one-click reconnect; it may be able to be set to not even try to overwrite protected files (I haven't tried for that.)

Hm yes, but is Filezilla able to monitor a loocal directory and automatically upload a file to the server once it has been created/overwritten in the local directory? I did not find how to set this up with Filezilla. This can be done with WinSCP but as I said it still requires too much user input to keep it going.

phpMyAdmin works for exporting and importing db contents.

I did not find how to create a partial dump of the database (only catalog data, customer data, or system data) using phpMyAdmin. that is why I switched to using the mysqldump utility (which comes as part of the mysql installation)

Andreas

30 Oct 2008, 5:34 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: shop maintenance strategies - to keep local and remote shop versions synchronized?

Eclipse sounds interesting. If it's not too big for my old computer to handle, I may try it.
Filezilla does not have an automatic file monitoring function that I know of.
PhpMyAdmin can export any selected group of tables, though I don't know if there is a convenient way to preselect groups that can be recalled with one click. You can probably save a SQL query that does it and paste that in, but if you have another method you are happy with, great.

30 Oct 2008, 10:34 AM
#5
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: shop maintenance strategies - to keep local and remote shop versions synchronized?

Many people here recommend Notepad++, it's good for small projects, maybe several files edit. Never good for working with a large module, you need something that can help you to:

  1. Suggest the function name and autocomplete (I can type zen_i and it then list all these functions for me to use)
  2. Suggest parameter list
  3. Jump to the definition of a specific function
  4. Syntax warning
    ......
    Eclipse/Aptana is a good choice. My company've me Zend, and Im happy with it.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me