I’m really new to all of this, so trying to problem solve along the way!
My current situation is…
I’ve built my first Craft CMS website and I’m running it locally on my machine using Craft Nitro and Docker – as suggested here… https://craftcms.com/docs/getting-started-tutorial/environment/stack.html#why-nitro
I’m now at the point that I would like to deploy the site to a droplet I have created on Digital Ocean. On the droplet I have spun up a LAMP server (again all firsts for me!)
Ideally, I would like to create a workflow that automatically deploys any changes I make, so with this in mind have uploaded the files and directories to a GitHub directory, hopefully this was the right thing to do?
I have very little idea about what to do next in order to get deploy the site, so would really appreciate any help or guidance!
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 there,
What I could suggest is following the deployment best practices suggested by Craft CMS here:
https://craftcms.com/knowledge-base/deployment-best-practices
What you need to do is:
cd command go to the /var/www/html directory and use clone your repository.composer install command: composer install --no-interactionAn alternative option would be to give the DigitalOcean App Platform a try as that way you would not have to do any server configuration and you would get automated deployments out of the box.
Let me know how it goes! Best, Bobby
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.