Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Production/Development Environment Question


hubcat

Recommended Posts

Greetings all,

 

I've just recently found a web host (we got a Virtual Private Server with root access) for my wife's new business and I was curious how others have setup their production/development environments. This is my first project with web technologies so I'd like to start off on the right foot.

 

My plan so far is to create a "development" directory under the web document path and copy the contents of the "catalog" directory there. I've password protected this directory so that it can't be easily accessed by a common user from the internet. I also created a development MySQL database. After getting everything working properly in the development environment, I had hoped to just copy the contents of the development directory into the root of the web document path. Then create a production MySQL database and dump the data from the development database to it.

 

After the site is in production, I would test any changes needing to be made in the development environment first (to ensure I don't break something in our production environment) and then roll them into production.

 

Any comments or suggestions would be greatly appreciated! :)

 

Forever learning,

Jeff

 

P.S. One other question - should I use Persistent Connections?

Link to comment
Share on other sites

Jeff,

 

Absolutely do NOT use persistent connections.

 

Your approach is good. For the database, you won't want to dump the dev db data to the prod db, just the table/column changes. Also, keep a log of which files you change while you are working on a mod on the dev side and only transfer those files to prod when you are ready.

 

Also, back up the dev files and db before starting a mod and backup the same on prod before transferring.

 

ed

Link to comment
Share on other sites

Jeff,

 

Switch them to false in catalog/includes/configure.php and admin/includes/configure.php. It's at the bottom with the db entries.

 

ed

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...