TransWikia.com

How to deploy website from dev to staging from localhost to remote server using composer

Craft CMS Asked by Shabz on June 26, 2021

I want to upload all my Craft files along with the database to an Ubuntu server using composer. This server is an EC2 instance of AWS.

Thanks for the help!

3 Answers

There is a course on CraftQuest regarding deployment of Craft CMS you might want to check out: https://craftquest.io/courses/deploying-craft-cms-3

For my personal workflow, I develop locally then push my codebase to Github. Since my servers are built using Laravel Forge, I have it set up to deploy my code to my server, which can be an AWS server, Digital Ocean, or any number of places.

For some sites, I use a more robust deployment service. I've used both Envoyer.io and Deploybot to do that. I wrote a post on the Deploybot set up I used. You can find that post here: https://supergeekery.com/blog/laravel-forge-and-deploy-bot

Correct answer by John Morton on June 26, 2021

I think this deploy-bot / buddy stuff is a bit overkill. I love to use Laravel Forge and for this u have to pay, when u want to build your business on it (for many clients).

Like I do with my statamic sites I think u can just do it the same way with your Craft 3 Github repo.

Deploy-bot / buddy / envoyer is good for continuous deployment where u want to have zero downtime. But this is just for crucial apps with a huge amount of users. Keep in mind that is will cost you additional money.

For the most websites its completely ok when its down for a few minutes when u deploy new stuff every few weeks.

Answered by Slowwie on June 26, 2021

I use https://deployer.org/ which is a php package you can run from the command line.

It's great if you're looking for a free, zero-downtime solution to deploy your sites. The downside however is that it's a bit harder to set up compared to paying tools. You need to be comfortable using the command line and have some basic understanding of git / ssh / ...

Answered by Steven Vandemoortele on June 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP