0

We have dedicated server Magneto 2 and we don't have cPanel or Plesk interface. We have staging and Live websites.

Please suggest what is the best way of working with Magneto 2.

I feel Our Developers are making changes directly on Live server and whenever something went wrong they just roll back the whole website which is causing more issues.

We need to know the professional way of working with Dedicated Magneto Server.

How developer should work?

Should they work on live site or keep the code in Git???

Please explain

1

Depends on the size of the build and the budget for dev resources. But on a larger site we have 3 sites. And a lot of these are a topic in their own right. The most solid setup is to have three sites.

Dev

This can be local or shared. If shared typical sftp access. Changes are tracked in git. Try to use something like git flow to enable multiple devs work on the site at the same time. If working local something like docker.

Staging

Client has acess to the site. But locked down to outside world. This site is often used to get work signed off before going live. My team has mixed feelings about staging site but I prefer to have deployment configured. There's lots of different ways in which this can be done but basically pushing to master in git on a particular remote will trigger a deployment process which triggers magento processes to upgrade and deploy static content. It's useful for staging site to have near live data but to help debugging but not necessary.

Live

Deployment configured. Production master remote triggers deployment. Caches on. Open to public. Only approved changes are put live. Larger updates are put live outside of busy periods.

Sorry all a bit vague. But this is a huge topic.

But yes changes in git and no not on a live site. But nobody is perfect and we've all had to do a bit of debugging on live site because of unexpected condition. Magento is complex and at times unpredictable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.