Questions tagged [deployment]

Questions regarding the deployment of Craft CMS sites.

Filter by
Sorted by
Tagged with
1
vote
1answer
31 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 ...
0
votes
0answers
42 views

Craft, AWS load-balancing and auto scaling

I need to move a Craft 3 site to AWS and have it behind a load balancer and autoscaling but I am uncertain on the proper way to keep all instances updated when new releases are done. So this is what ...
2
votes
1answer
60 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/...
0
votes
0answers
28 views

Staging and Deploying Changes in Craft (w/ and w/o Git)

I am following up on a question I asked some time ago (Staging / Production w/ common DB and Assets). I am now running a few Craft sites for clients with local test environments where changes are made ...
1
vote
2answers
48 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 ...
1
vote
1answer
28 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
2
votes
2answers
267 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'...
1
vote
1answer
163 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 ...
2
votes
0answers
104 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:...
2
votes
1answer
363 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 ...
0
votes
0answers
335 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-...
1
vote
1answer
161 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-...
1
vote
1answer
1k 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. ...
3
votes
1answer
233 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 ...
3
votes
2answers
1k 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 ...
1
vote
0answers
47 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 ...
2
votes
1answer
332 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 ...
1
vote
1answer
216 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 ...
2
votes
1answer
3k 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 ...
1
vote
1answer
400 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 ...
1
vote
1answer
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 ...
3
votes
2answers
3k 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. ...
1
vote
1answer
171 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 ...
1
vote
2answers
167 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/ ...
1
vote
1answer
223 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. ...
1
vote
1answer
120 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 ...
3
votes
2answers
1k 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 ...
1
vote
3answers
436 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 ...
1
vote
1answer
182 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 ...
4
votes
1answer
213 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 ...
2
votes
4answers
1k 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/...
1
vote
0answers
230 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 ...
4
votes
2answers
597 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 ...
1
vote
1answer
123 views

Breaking one large Craft app into multiple smaller apps

Some background information: We use a Craft app that has several modular components that we've put into separate plugins. IE: a purchase plugin, "logged in" plugin, and so on. I'm thinking of ...
1
vote
1answer
785 views

Digital Ocean: Dev + Production Droplets

I've been learning craft and want to setup a production & development environment. I've primary HTML CSS experience with limited backend or server related experience One way I thought about ...
9
votes
1answer
4k views

Deploying Craft on AWS

I made my first Craft site with MAMP locally. I am trying to get my site running on AWS but I'm having a hard time with understanding the process. Are there any good tutorials or suggestions about how ...
0
votes
3answers
507 views

Host a Craft app

I've just made my first craft application and I'm ready to launch it. After looking at some topics I've decided I should go with DigitalOcean and ServerPilot. I have a domain, the only thing is that I ...
-1
votes
1answer
226 views

404 homepage on deployment

I got a Craft-style 404 page when deployed to server. The homepage displays fine in local/development environment. On the server, the admin interface works fine though. Here's my config. return ...
12
votes
3answers
3k views

How to set up CloudFront for a Craft site

I'm now setting myself to learn about AWS. Has anybody documented their experiences with CloudFront and Craft?
3
votes
2answers
1k views

File Permissions on Compiled Templates

We use an automated deploy system when developing with Craft. We have a deploy user "deploy" and a web server user "www-data" Deploy is a member of the www-data group. Our first few deployments ...
0
votes
1answer
542 views

Craft storage dir as linked in capistrano

I'm having some issues with my install of craft on a staging server. I'm deploying using Capistrano, and (perhaps wrongly) added craft/storage to linked_dirs (to share between deployments). Since ...
0
votes
1answer
698 views

Accessing admin panel after deploying local MAMP

I've moved my site from a local install to my server. I'm pretty new at this, so hopefully I've followed the right course: What I did: Edited db.php to reflect the changes Edited index.php to point ...
5
votes
1answer
193 views

DB Update Trigger

When there are updates to Craft, I perform them locally against a local database. The files are then committed to a repository. I then use Capistrano to deploy the updated installation to various ...
3
votes
1answer
433 views

Updating Craft cause broken git and merge conflict

I've got a local db and install of Craft as well as a remote. I'm pushing to bitbucket from my local Mamp environment then pulling from bitbucket to my server via ssh. I recently updated Craft by ...
1
vote
1answer
322 views

Are there any Craft specific migration tools that extend Yii's built-in functionality?

We're working on developing a proper deployment system for projects built on Craft, and wondering if there are any Craft specific tools built-in that can assist with generating database migrations, ...
9
votes
2answers
7k views

Is it possible to clear caches and re-index assets programattically?

When migrating a Craft site, I'm used to... deploying files checking my config, tweaking as necessary loading a database backup running "Update Asset Indexes" and "Clear Caches" from the control ...
9
votes
2answers
2k views

Craft, CSS Frameworks, Bower & Grunt setup suggestions

I would like to use a CSS Framework like Zurb Foundation with Craft. I also want to manage my bower dependencies and I want to use Grunt to concat and minify my sass/js as well as compress my images. ...
19
votes
4answers
4k views

Can I run one Craft install on multiple domains and/or subdomains?

Is it possible to have one Craft install running multiple domains and/or subdomains? For example having the same Craft install running a blog Channel at blog.example.com and also an about Single at ...
101
votes
8answers
13k views

What's the best practice for handling data migration and organization across development environments?

This issue becomes especially difficult when there are multiple environments, with multiple developers working on different features that affect the data structure. The holy grail is a git-style ...