I suspect there are resources on this already, but I’m pretty new to deploying sites so I’ve likely missed them, and links to accessible documentation is great!
Basically once I have a local Drupal 11 project ready (using DDEV/Docker), what is a recommended workflow to deploy that on a DO droplet? Or if a droplet isn’t the way to go, what is?
Thanks!
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Heya,
You can use either a droplet or an app platform. Whatever is easier for you. What you need to do if you want to have a Droplet is make sure the files/your app is on your Droplet.
The best way to do that, I think is create a github repository, upload your Application there and once you have a Droplet just pull the repo on it. Locally, you can do something like that
Now your repository will have your files. Now let’s go to the Droplet and how to prepare it. SSH to your Droplet(Ubuntu one) and run:
Setup your Database;
Now, you need Pull Your Project to the Droplet
Create a new config for Apache to server your website:
Enable site and rewrite
Heya,
On top of what’s already been mentioned If your droplet has 1 GB RAM you can enable swap file and also using MySQL configutation tools like MySQL tunner to tweak the config for optimal performance:
https://www.digitalocean.com/community/questions/how-to-tweak-mysql-mariadb-configuration-for-increased-performance-and-stability
You can also check:
https://www.digitalocean.com/solutions/drupal-hosting
Regards