Jump to content

How can I make local development environment to connect to remote production DB?


henryyao

Recommended Posts

Hi,

 

I am new to prestashop development and I am wondering what is the best practice to develop in local environment and deploy to remote production server? Do I have to download the production DB and make a replica locally?

 

Is there anyway to have local php code to connect to remote DB? From my understanding ps_shop_url setting prevents me from doing that. Is there any walk around? I don't like the idea that I have to regularly download /img and database to make the localshop work the same as production.

 

Any suggestions?

 

Thanks,

Henry

Link to comment
Share on other sites

Use automatization tools to create a local copy and upload back to your server. You should have a local web server as well as database server. Technically, it is possible to link to remote DB, but it will be too slooow. Of course, very few hosting providers offer remote access to their database servers.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...