Jump to content

How to make same installation work on two machines


Recommended Posts

Hello everybody,

I hope someone can shed some light on this - so far I am doing some trial and error.

I have Presta installed on my xampp localhost.
This is where I configure the system, modify the CSS etc.

Then, I am using an FTP mirroring software to copy the entire content to my production server.

I am assuming there should be no problem in doing this - only I know that I need to make the configuration files be sensitive to where they are.

So, as far as I could see, the only place I need to touch is the config/settings.inc.php file.
True?

I mean, if I create some conditional configuration in this file
if( localhost ) define( this )
else define( that )

Will it work?
Are there other files?

Thanks in advance.

Link to comment
Share on other sites

Thanks for the quick reply Zendik.

My host is already well-configured for my stuff, so everything seems to be working fin
You guys have done a great job in simplifying things - I was quite shocked to see that there are only a few lines in the config folder that I need to touch.
So I have added

if( $_SERVER['HTTP_HOST'] =='localhost' ) {
// localhost db definitions here
}
else {
// live definitions here
}



And everything seems to work

I was a little concerned about the _COOKIE_KEY_ since I did not know what it is, but it seems that it is working as is (same value) both on local and live.

Excellent piece of software!!!!!! :)
Finally Im making some progress in the commerce area.

Link to comment
Share on other sites

×
×
  • Create New...