By NGINXuser
Currently opencart is at /var/www/opencart and if I want to change something I use filezilla to paste over the existing content.
I want to create a workflow of development then staging to test and then production when everything looks fine. I would need to keep track of the changes/versions in case of needing to rollback.
Should I create stagine.example.com to test the staging phase on the same server?
For development, I was thinking on creating a localhost config file for nginx.
Server is LEMP with MariaDB, PHP7.2 and Opencart 2.3.0.2
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @NGINXuser,
What I believe the best approach should be a git/gitlab repo. From there you can create a master repository which would be for your production website.
If you wish to have a test or staging environment you can always just fork/create a branch repository and make the changes there. As soon as you are sure the changes are actually working, you can merge the branches and pull them on your master environment.
Those are the basics which should be enough for your goal.
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.