Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [deployment]

Questions regarding the deployment of Craft CMS sites.

Filter by
Sorted by
Tagged with
2 votes
1 answer
93 views

Deployment strategy that removes tables from uninstalled plugins

I have read the following article best practices for deployments. https://craftcms.com/knowledge-base/deployment-best-practices here the following is recommended: git pull composer install php craft ...
antdev's user avatar
  • 137
0 votes
0 answers
66 views

Content revision issue for every code deployment

The content reversion issue was reported during the production deployment of a new module on the Craft CMS site. To address this issue, we suspect the below deployment scripts are causing the content ...
JohnC's user avatar
  • 61
1 vote
1 answer
177 views

Run craft up command in deployment pipeline without prompts

I am deploying a Craft website with Bitbucket Pipelines. Basically what it does is spinning up a container that runs composer install and builds my CSS and JS with webpack. The vendor folder and js/...
Matthias's user avatar
  • 301
0 votes
1 answer
198 views

Siteground hosts file issue with Craft

I’m deploying a Craft site to a host I’ve not used before (Siteground). I ran the server check via SSH and everything came back green. Apart from the PHP version which it said 8.0 was the minimum, and ...
mitrol's user avatar
  • 262
1 vote
1 answer
306 views

Run Craft CMS 3 (or 4) without a .env file?

In trying to set up a CI/CD process to containerize Craft 3 and deploy to Azure App Service, I succeed in building a container that runs Craft, however, each time the container gets redeployed, I ...
SvenAelterman's user avatar
2 votes
2 answers
732 views

Recommended caches to clear after server deployments?

Craft has this article about deployment best practices: https://craftcms.com/knowledge-base/deployment-best-practices It also states that you might want to clear caches after deployments, which is of ...
Thijs Kaspers's user avatar
1 vote
2 answers
109 views

Craft loses license after deploy

We're using "atomic" deploys where we symlink to the new version. Each time we do this, Craft thinks it's unlicensed. As we have allowAdminChanges set to false, this requires manually ...
Darryl Hein's user avatar
1 vote
0 answers
59 views

All logins fail on Craft CMS 3 after code redeploy and database restore

Background: AWS deployed Craft site. I pushed an update to the php version (7.0.32 to 8.0x) the container was running on along with an upgrade to Craft (Craft Pro 3.5.15.1 to 3.7.42) and several ...
vlasits's user avatar
  • 203
2 votes
1 answer
391 views

Security Key Not Loading from Environment: Next Twig\Error\RuntimeError: craft\web\Request::cookieValidationKey must be configured with a secret key

Our new Craft CMS instance in the AWS cloud won't load the security key from an environment variable. (We do not use a .env file.) $ curl http://localhost/actions/app/health-check An internal server ...
Micah Henning's user avatar
1 vote
1 answer
282 views

How to use Craft commands in Github Actions

This is how I want to trigger certain actions with the craft terminal. It does not work: # execute Craft commands on remote server - name: Execute SSH Craft Commands on remote server uses: ...
KSPR's user avatar
  • 3,786
1 vote
1 answer
185 views

Deploy Craft CMS site to VPS for the first time

I'm completely new to deploying a Craft CMS to a web server and don't know where to start. I have self taught experience in front-end development but I'm lost when it comes to anything deployment/...
Sam's user avatar
  • 11
1 vote
1 answer
248 views

Unable to setup Craft on a DigitalOcean managed DB

I just cloned an existing droplet with a working instance of Craft, I created a MySQL8 managed DB but whenever I run php ./craft setup I get this error: Caused by: Exception 'yii\db\Exception' with ...
tfantina's user avatar
  • 125
1 vote
0 answers
64 views

How to change the primary site on a multi-site setup?

We have a multisite setup. We're wanting to use the same codebase, but deploy to two different servers with some of the sites on server 1 and the rest on server 2. For example: Server 1 Site 1 [...
drmonkeyninja's user avatar
1 vote
1 answer
283 views

Is it possible to run Craft CMS on Google's Cloud Run?

I've been able to get Craft to run on Google App Engine (GAE), but not Cloud Run as of yet. The error message I'm seeing in the browser is: /app/craftcms/storage/runtime isn't writable by PHP. Please ...
Eric's user avatar
  • 133
0 votes
0 answers
24 views

Cannot find page but is active in the admin panel. Staging and locally no issues

I've recently deployed an extension to an already existing craft website. I always have a staging website where we can make sure everything is working as expected. Everything was. When I pushed the ...
Thomas H.'s user avatar
1 vote
2 answers
336 views

Synching content and template files across environments

I'm new to CraftCMS and have a few basic questions about synching contents between local and remote development environments. This has been discussed in other posts by I'm looking for more specific ...
mauricio's user avatar
  • 187
1 vote
1 answer
1k views

Applying changes from your project config files ... No site settings exist for section 20

Deploying on production is giving me this error. Applying changes from your project config files ... No site settings exist for section 20 Deploying to stage is working no problem. Production isn't ...
MartinD's user avatar
  • 31
4 votes
1 answer
420 views

Automated deployment with content migrations and structural changes

In the knowledge base article there are 4 steps described to automate the deployment process Pull updates for git Run composer install Run migrate/all Run project-config/apply The problem with this ...
Tim Bertens's user avatar
1 vote
1 answer
471 views

Maintaining and deploying many multi-site from a single codebase

We're developing an application that uses a multi-site Craft back-end with a JS front-end, making use of GraphQL. The intention is to maintain a single codebase that can be used to deploy new and ...
Wallace's user avatar
  • 611
1 vote
1 answer
78 views

Craft 3 to webserver (with only access to public_html )

I just wanted to deploy, my site live, but I was running to some issues. I read that I should put only the web folder to public_html and all the other folders and files above that. But on my server ...
Simó Tamás's user avatar
2 votes
2 answers
217 views

Applying project config changes with post-receive git hook

I site I'm working on uses a post-receive git hook for deploying changes to the server. At the moment, it looks like this: #!/bin/sh # default cpanel stuff branch=$(/usr/local/cpanel/3rdparty/bin/...
Tyssen's user avatar
  • 653
1 vote
2 answers
139 views

Problems transferring updates back to live server

For quite a long time i've updated and amended Craft by taking a copy of the files and database (.zip) from the live server, making the updates/changes/amendments locally and then transferring ...
Martin's user avatar
  • 1,203
1 vote
1 answer
97 views

Can't access control panel

I moved my website from local to an online test server via git. Everything works fine, except that I can
Jan's user avatar
  • 196
2 votes
2 answers
613 views

Deploying and syncing project.yaml

I have a Craft CMS site set up that deploys through TeamCity and am trying to set up a build step to auto run "./craft project-config/sync". I keep getting an error saying the file can't be found, I'...
WillBV's user avatar
  • 81
1 vote
1 answer
462 views

CI/CD with Craft

Does anybody have experience with CI/CD and Craft? I am testing deploying to PlatformSH but cannot find anything on Google about CI with Craft. Has anybody setup Travis or something similar on ...
Callum's user avatar
  • 193
2 votes
1 answer
425 views

What is the correct way to update a production site with composer?

I disable admin updates on production sites, and update Craft and its plugins by updating in the development environment, and then deploying to production using Git. My basic process starts like this: ...
Mark Northrop's user avatar
2 votes
1 answer
2k views

Unable to Access "Settings" in Backend

So I've created a boilerplate for my web development company using Craft. However, I'm encountering so much inconsistency across different machines. I recently set up a new website at my public ...
Palmtree Studios's user avatar
1 vote
0 answers
463 views

Auto trigger craft project-config/sync on deployment

So I have the following in my Composer file: "scripts": { "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-...
Terry Upton's user avatar
  • 1,894
1 vote
1 answer
354 views

Deploying Craft on Apache Server - Error code 255

I'm trying to deploy our Craft 3 site on an Apache server. When running composer install I get the following error. @php nys-setup update Script @php nys-setup update handling the post-install-...
Dan Lee's user avatar
  • 1,107
1 vote
1 answer
4k views

How do I resolve dependency conflicts in Composer?

I'm new to using Composer and I'm having trouble deploying to Laravel Forge. I am getting an error message that says: Your requirements could not be resolved to an installable set of packages. ...
Brian Rivet's user avatar
4 votes
1 answer
589 views

How should one go about using Craft with Git? [not duplicate]

I've seen many other questions about Craft deployment, some of which even use Git, but none seem to thoroughly address how one would use version control on their local development environment, push ...
Anonymous's user avatar
3 votes
2 answers
3k views

SOLVED: Best way to deploy Craft 3 to webserver?

I want to deploy a local craftCMS 3 website to a server, but I didn't manage to get answers to some of the questions I have rightnow on Google search. So I hope you can help me with this and can help ...
Friksel's user avatar
  • 180
1 vote
0 answers
98 views

Blank pages after moving from Local development to Production

I'm very new to Craft and recently built my first Craft-powered website (locally) and it works fantastic. Now, I want to move it to production, and I'm having trouble. Locally, everything went very ...
user3693032's user avatar
2 votes
1 answer
591 views

How to Deploy CraftCMS to Dreamhost w/Github

I was recently able to get Craft CMS installed on my local server and I am using MAMP to host locally as I develop the site. I have never set up a site on my own, so I was hoping someone could give ...
user147793's user avatar
1 vote
1 answer
250 views

Deploying Craft 3 site to production has working admin but 503 front end

I have just deployed my first Craft 3 site to a production server with the following process: Deploying git repo to the server Then running the composer command to download the required files for ...
Jay's user avatar
  • 1,042
2 votes
2 answers
4k views

What is the best way to deploy a Craft CMS 3 site?

I'm unclear as to the best way to deploy a Craft CMS 3 site. I'm looking for some best practices and guidance. I'm currently using Rocketeer to deploy the code from my local environment to my staging ...
Kevin's user avatar
  • 73
1 vote
1 answer
627 views

Handling path to assets (css, js) between local and production environment

How do you guys handle different paths between local and production environments regarding css and js files in your template twig files? I am following the tutorials of nystudio107, which are simply ...
Pascal G.'s user avatar
1 vote
1 answer
1k views

Development – deployment environment

I am new to Craft 3 and never set up a local environment with composer, bitbucket and gulp. So I dived into all these things to get my hands on Craft 3. At the moment I am using a shared hosting ...
Pascal G.'s user avatar
3 votes
2 answers
4k views

Deployment of Craft 3 site to the production server

I am quite new in Craft CMS 3. I have developed a new site and now I want to move it to the production server. I have just moved all the files by FTP, moved the database, changed .env variables. ...
podeig's user avatar
  • 153
1 vote
1 answer
274 views

Recommended High Availablity Architecture

We are looking to use Craft CMS for an upcoming web project, are there any documented architectures or topologies for deploying into a production setup. This would be for high availablity across ...
user avatar
1 vote
3 answers
279 views

Links breaking with double domain

When calling my links, they're appearing and trying to link like so: testurl.com/university/testurl.com/university/arizona-state/ Really it should just be testurl.com/university/arizona-state/ ...
JMKelley's user avatar
  • 1,406
1 vote
1 answer
272 views

Getting Service Unavailable when setting up domain name

Currently I'm trying to push my deployed website to the actual domain name it needs to be under using DigitalOcean. The website works perfectly when accessing it directly from the droplets ip address. ...
JMKelley's user avatar
  • 1,406
1 vote
1 answer
150 views

Can't load assets or upload assets

Currently trying to load an asset located in the following branch of my install: Craft html uploads Unfortunately when I try to head directly to a specific asset I get the following error message ...
JMKelley's user avatar
  • 1,406
4 votes
2 answers
2k views

Deploying CraftCMS to Digital Ocean

Currently I'm having an issue deploying to Digital Ocean and would love some advice, i've followed numerous tutorials but they seem to just drop off half way through the process so just need some ...
JMKelley's user avatar
  • 1,406
1 vote
3 answers
584 views

Update fields structure from local to production

How can I change fields/sections structure locally while having a live site and then upload the new structure, without wiping the production site? In Wordpress ACF you can just Sync the fields ...
Hontoni's user avatar
  • 111
1 vote
1 answer
299 views

Craft folder deployment outside public folder

I would like to commit my craft project to bitbucket en deploy it with the help of Deploybot. The plan is to put the templates (in craft folder) and public assets (public folder) under version ...
Dennis's user avatar
  • 13
4 votes
1 answer
232 views

What are useful guidelines for Craft CMS security on VPS (virtual private servers)?

We have the choice of engaging services like Forge and ServerPilot, or rolling our own. Besides pricing, the opacity of what the services are actually providing can be a question -- just how well do ...
narration_sd's user avatar
  • 1,707
2 votes
4 answers
2k views

Recommended workflow when developing new websites

A common workflow for me when building a web page is the following. I'm getting a PSD-file (Photoshop) from a external advertising agency Build the site in Webflow and then export to plain html/css/...
Magnus's user avatar
  • 171
1 vote
0 answers
243 views

Getting started deploying Craft sites with Capistrano

I'd like to deploy a Craft site with Capistrano but am looking for the best way to get started. Is the Craft Deploy utility by Bluegg up to date, or would it be better to use a vanilla version of ...
Justin K's user avatar
  • 309
4 votes
2 answers
884 views

Workflow when you only have FTP access?

I'm building a simple low traffic website in Craft for a customer whose web server only allows access over ftp. How would you have done the work in practical terms? Building the site locally and then ...
Magnus's user avatar
  • 171