How to Deploy a Craft CMS Webs…

0 0
Read Time:1 Minute, 15 Second



FULL STACK COURSE (React, Flask, & PostgreSQL):

There are many ways to deploy a Craft CMS website, but several people have asked me how to do it over FTP, so here’s my answer!

0:00 – Intro
0:19 – Step 1: Migrate the database
2:42 – Step 2: Create an .env file for production
4:34 – Step 3: Upload all files via FTP
6:24 – Step 4: Set file permissions
8:06 – Step 5: Create an Apache VirtualHost file
10:22 – How to debug problems
12:18 – Check Craft’s system requirements
13:00 – PHP configuration changes
16:20 – Increase the Craft CMS file upload limit
18:08 – Enabling Admin changes on production (temporarily)
19:03 – Final thoughts – let me know if you need help!

I would *generally recommend* only using FTP to get your website assets and templates uploaded, then using the Composer CLI to install Craft CMS itself and all of it’s dependencies directly on the server. But this video demonstrates a Composer-free and Git-free method of deploying a Craft CMS website.

Another approach is to use Git-based managed hosting services from companies like Fortrabbit. These allow you to push your entire website to production (and staging) via Git. Fortrabbit even has a useful database migration tool to make that part easier.

—————————————————————
WEB HOSTING

I’ve been hosting ALL of my own websites (and many of my client’s websites) on virtual private servers from…

source

This post was automatic generated with this wp-automatic-plugin

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
How to make your own Personal … Previous post How to make your own Personal …
blogger premium themes free do… Next post blogger premium themes free do…

5 thoughts on “How to Deploy a Craft CMS Webs…

  1. I worked with Craft back in the first version and I’m looking to get back into it. I’m struggling to find places that adequately explain the preferred/best practices of local development (ideally linked to Git) and deployment to production. I’d love to have a setup where I can regularly sync my production and dev environments and vice verse. Any feedback on that or maybe a video idea?

  2. Just watched this video as well .. and basically I'm looking for kind of a reverse function. I mean, I've downloaded my friend's website code from Github which he shared. Now, I'm trying to set this up on my localhost.. but I couldn't find .env file in his repository..

Leave a Reply

Your email address will not be published.