Skip to main content

Questions tagged [deployment]

Use it for questions about deployment: staging content, managing and syncing sites across multiple servers.

Filter by
Sorted by
Tagged with
12 votes
6 answers
6k views

Export/Deploy Drupal site/page to static? (no cache)

I wonder if there is an existing module that can help in the subject. I am not looking for a caching module (like Boost or Varnish), but a way to export my whole site (or only certain pages) into ...
0 votes
1 answer
50 views

Config split is imported only every second time of jenkins job run

I have some weird behavior with drush cim when running from a jenkins job. It seems like a config split is only imported every second time or so when the job is run. The update skript containing the ...
0 votes
1 answer
418 views

Bulk redirect update from CSV: in code or manually?

I have a D7 question. My latest site change involves using the Path Redirect Import module and drush path-redirect-import to bulk-create a bunch of URL redirects from a CSV file. It works fine in dev ...
2 votes
0 answers
57 views

Automatically trigger Acquia pipelines job when content is updated

My team is fetching a large portion of our site's content at build time by using the i18n Gatsby plugin and downloading content from Drupal. The content we are fetching at build time rarely needs to ...
0 votes
2 answers
2k views

Clearing cache breaks site

I'm trying to load a production site in a dev environment using the site's codebase (core 8.3.7, contrib and custom modules and vendor folder) and the current database. After struggling a bit with it,...
0 votes
0 answers
241 views

There were errors validating the config synchronization after changes to modules and config

After many hurdles, struggles, and "learning moments", I pushed my site to staging successfully. Unfortunately, I am running into numerous issues when I try to push updates to a deployed ...
0 votes
2 answers
4k views

Drush unable to find settings.php

I have a unique problem, for which I am unable to find the reason and thus not an inch closer to solution since 4 days. Drush is taking a separate settings.php file instead of the correct one. Check ...
1 vote
1 answer
150 views

Acquia BLT - How to put remote config_split config values back into version control

I have been using Acquia BLT and config split. I understand how to set up the config splits and deploy them using BLT. What I don't understand is - once I have a split in place, say on dev, and I've ...
20 votes
5 answers
8k views

Order of drush commands for automated deployment?

What order should the following drush commands be ran? config-import updatedb entity-updates Also, I see entity-updates fail a lot due to field_delete_data* tables existing. How can I delete them as ...
0 votes
2 answers
173 views

How can I remove test directories when deploying?

When deploying Drupal, there are a lot of files in test directories, none of which are needed in a production environment. There's an ongoing issue to Exclude test files from release packages, but how ...
2 votes
0 answers
355 views

Is it possible to run Drush commands during the build stage of a deployment pipeline?

Apologies in advance for the long questions. Background: We are building a 4-step AWS pipeline to deploy our site to an ECS container. The stages are as follows: Source Build Deploy Post-deploy At ...
-1 votes
1 answer
108 views

Azure web services does not remove index.php from URL

I have a PHP-based (drupal) website running with Azure web services. It uses NGINX, and the urls are broken. The homepage is absolutely fine, but once i go to the login link (/user/login), it gives a ...
0 votes
1 answer
219 views

Deploying drupal 9 on a remote server [closed]

I've built my website on my local PC and I'm ready to go live and move it to the remote server. I've bought a shared hosting package (so I can't run scripts etc, but I can copy the files over and ...
0 votes
3 answers
535 views

How do you deploy a change to a main menu?

We have a small D7 site. We want to deactivate a main menu item. On dev server I was able to deactivate it in /admin/structure/menu/manage/main-menu I believe The menu is stored in the DB, right. ...
-1 votes
1 answer
1k views

All pages give 404 using nginx

I am building a drupal site with drupal 9, and i want to publish it using azure devops. Only the problem is that every page, except the frontpage, gives a 404 error. I've looked around the internet, ...
0 votes
0 answers
53 views

How do I fix these issues I get on a cloned site?

I am maintaining a Drupal site using Docksal, at work. During the weekend, I wanted to work on it at home, from my computer. I cloned the repository git clone [email protected]:user/project.git folder ...
0 votes
2 answers
622 views

Create configuration storage programmattically for list_string

On a paragraph type, I have a field I want to migrate to a new field of type "list_string". To do that in the deployment and like our automatic deployment begin by an update of the database follow by ...
14 votes
6 answers
7k views

How can I deploy user interface translation?

Strings that I translate at "User interface translation" /admin/config/regional/translate are not exportable by "Configuration management" /admin/config/development/configuration for me. Am I missing ...
3 votes
1 answer
278 views

How do you display a version number on a footer file? [closed]

When I deploy my Drupal code, I build an artifact with BLT. I would like to write a file of some kind with the version number (tag provided to the artifact) that could then be read and displayed in ...
0 votes
0 answers
129 views

How to manually deploy on a shared hosting?

In my shared hosting: no git, no composer, no root folder settings. Only the folder "public_html". And my Drupal files: vendor, web, composer.json, composer.lock. How should I put it all in ...
1 vote
2 answers
3k views

Error when moving from local host to live server

I am getting the following error after deploying a website on server. PDOException: SQLSTATE[42000]: Syntax error or access violation: 1231 Variable 'sql_mode' can't be set to the value of '...
0 votes
2 answers
425 views

How to deal with config changes in prod and by multiple developers?

I have two scenarios in configuration management that I am unsure how to deal with: Geeky user makes config changes in production. What is the best practice to import these changes in dev without ...
0 votes
0 answers
53 views

How do I connect Netbeans IDE to AWS Bitnami installation?

I'm hosting a Drupal 8 installation on AWS using the recommended Bitnami image. I'd like to be able to edit some of the files remotely from my computer using the NetBeans IDE. I've successfully ...
3 votes
2 answers
742 views

Drush rsync permission woes (files directory)

I'm rsyncing just the files directory (rest of the site is done through git) from my local Ubuntu setup to my centOS server. It worked at least (thankfully), but produced a ton of errors. First it ...
1 vote
0 answers
86 views

What is the best practice to update our internal code from Dev to Prod for multiple sites?

Details: We are not sure of the best practice to use for updating internal code, such as custom modules and theme. There seems to be two main processes to take and both look like the correct answer. ...
0 votes
0 answers
57 views

Unexpected error after migration to a new host

I'm having a bit of trouble finding out what's going on with my Drupal installation. I started building a site on a test server a while ago. Now it's time to move the entire website as it is to a new ...
1 vote
0 answers
56 views

Decoupled Drupal - Security [closed]

I am running a Drupal 8.9.2 site as a content repository accessed via an Angular 8 app. So there is one administrator who uses the Drupal interface to write content / upload files eccc.... and ...
0 votes
0 answers
57 views

Rollbacking from Yaml based configuration to database based configuration

We recently changed the way we deploy our Drupal site on our testing environment to a docker image. The issue is that we were using a file based configuration. The current applied configuration is not ...
1 vote
1 answer
88 views

Decoupled Drupal - Security: files structure

I am running a Drupal 8.9.2 site as a content repository accessed via an Angular 8 app. So there is one administrator who uses the Drupal interface to write content / upload files eccc.... and ...
0 votes
0 answers
60 views

Workflow Rules breaking site deployment

I'm trying to deploy a development Drupal instance to a test environment, but something is going wrong with Rules. I copied the entire site's filesystem, dumped the database with mysqldump, imported ...
0 votes
0 answers
244 views

What is the correct way to 'fix' a site originally installed an developed using Composer, but deployed using FTP?

I have put together a site using the Drupal Varbase distribution. To do this I installed using composer, this is my first project using Composer. Now that I'm done in development I'm working on ...
1 vote
0 answers
478 views

How can I deploy an existing local site to Pantheon?

I have an existing local site that I've developed. In most "normal" instances, I would simply FTP the everything to the external host server, upload and install the database, and life would be good. ...
0 votes
1 answer
348 views

Menus, drush uli link, and some images not working after moving site to localhost

I've just gotten a site I'm supposed to do some work on but I'm having trouble with migrating to a local development environment. I don't have admin access to the site itself, but I do have access to ...
2 votes
0 answers
171 views

Can entity IDs (node, taxonomy, etc.) be synchronized across environments?

It seems the content synchronization module syncs entities UUIDs, but not their entity IDs (like TID, NID, etc). Since it only does UUID, this can result in environments with mismatched IDs for the ...
0 votes
1 answer
55 views

Deployment of full database dump still causes error

I want to deploy my local DB to a staging server. The local DB dump was exported with all tables. Including the "cache_" prefix table structures with no data exported. After deployed to staging (...
0 votes
2 answers
2k views

How can you change the temporary directory?

I migrated the site from the local server to live server. But the images do not appear - the website logo and some PDFs. I've been seeing the problem could be here "Config" >> "file system" and my ...
0 votes
0 answers
128 views

Broken css/image links after moving

I've been trying to fix an issue with moving my drupal installation. Some first information: I am using the Open Social module; I used a localhost a DNS to connect my Xampp to the same subdomain as ...
0 votes
0 answers
179 views

ReflectionException: Class \MenuBlockKernelViewSubscriber does not exist

Doing a simple staging to production migration, copied all files, and the database,. Imported the database successfully but now when visiting homepage of the site I get the below error message/...
0 votes
1 answer
1k views

500 Server Error after deployment

I apologized as I'm not well versed specifically with drupal. But anyway, I was migrating an existing installation on a Windows Server to a Linux Server (debian). I went ahead and moved all the files,...
0 votes
1 answer
1k views

How to export content from dev environment for deployment to production environment?

We have to deploy content of around 37 content types from development to production environment. Each content type is having around 10 to 12 nodes. So, we have around 360 nodes for migrating to ...
4 votes
1 answer
105 views

Host doesn't support nested folder structures for deployment. How do I adjust Composer?

So, I have to deploy a drupal 8 site to a host which doesn't provide functionality to specify an entry point for a Drupal site which is nested below the site root folder. How can I update the folder ...
3 votes
0 answers
61 views

How to programmatically build Drupal in a Continuous Integration workflow [closed]

My team is relatively new to Drupal. One thing we have struggled to understand is how to work with it from a DevOps point of view. I realize this is too large a subject for one question so I have a ...
6 votes
4 answers
10k views

Content export and import / content deployment

It's easy to deploy configuration of content types, views and so on... What are the options for deployment of content (nodes) between different environments?
2 votes
1 answer
435 views

Syncing Development Site with Production Site

I recently built my first Drupal 8 site. I've updated the production site since it's been launched, and I wanted to sync it with the development site before I create another content type. Could ...
5 votes
6 answers
4k views

Enable new modules dependencies on deploy

How can I automatically enable new dependency added on a custom feature (or standard modules) with drush? After getting the new code, my deployment script basically run: drush cc all drush fra But ...
0 votes
2 answers
201 views

Development without pulling production DB to your local machine

When you push configuration to production, any configuration that has changed in production that has not been exported into code will either be reset to the values in code or be wiped out entirely if ...
2 votes
1 answer
81 views

Deployment strategy for servers on internal network

I am following composer based workflow for Drupal 8, in which I commit only custom code and use composer install to install it on another environment. However, on new workflow, the dev, test, staging ...
0 votes
1 answer
79 views

How to use Docker for a drupal development site and then deploy to online provider?

I am operating a Drupal website with two installations: a development site on my local machine (dev) a live site at my ISP offering an Apache httpd, with PHP and MySQL (live) For dev, so far I have ...
1 vote
1 answer
2k views

How do I deploy a local site?

I've been getting mixed messages and there is practically no solid up-to-date documentation, I just want to know the standard procedure for moving a locally developed Drupal 8 site to an online server....
0 votes
0 answers
134 views

Deploy Media Field Images From Staging to Production

I'm trying to find a way to copy nodes (plus associated images) and (ideally) users from a Drupal 7 staging site into production. In theory, this "Deploy - Content Staging" module is perfect: https:/...