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
30 votes
2 answers
5k views

How are drush and jenkins used together for continuous integration?

I hear the buzz words, "continuous integration", "drush" and "jenkins" often. Thus, sparking my interest. How are drush and jenkins used together for continuous integration? Also, why would you ...
chrisjlee's user avatar
  • 6,550
24 votes
4 answers
3k views

Are Drush and Phing redundant?

I've installed JenkinsCI on our dev server to start automating our dev build and test process. I'm using Jenkins with the Git Plugin and some Drush commands via a shell script. When researching how ...
DKinzer's user avatar
  • 538
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 ...
Paul Canning's user avatar
19 votes
5 answers
989 views

Manage custom modules across multiple installations

We have some custom modules which are used for multiple sites. Those can't be released as contributed modules, for example because they are client specific, make assumptions that don't work for ...
Berdir's user avatar
  • 83.3k
16 votes
1 answer
1k views

How to correctly remove a module in a staged environment?

Some modules have deïnstallation routines. Which typically remove databasetables for that module, variables from the variable table and locales introduced by that module. These routines live in the ....
berkes's user avatar
  • 3,100
15 votes
3 answers
439 views

How do I deploy/manage similar sites from an unique profile, without dumps?

I do not like the "cloning website" solutions which implies dumping a database and importing this dump in another environment. This does not look like a real world way of deploying several instances ...
regilero's user avatar
  • 226
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 ...
milkovsky's user avatar
  • 5,344
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 ...
Maor Barazany's user avatar
9 votes
5 answers
1k views

Deployment for staging and production [closed]

I need to make the deployment easy between my staging and production servers. How can I do this? I need to deploy all the changes, so if I pull from Github and run the script, the changes are applied!...
Abuzer Firdousi's user avatar
9 votes
1 answer
853 views

How can I install composer packages with drush make?

How does one include composer package in a drush make file? The more general answer, the better. There's already a composer drush module allowing drush dl to handle composer packages, but that ...
Letharion's user avatar
  • 27.5k
8 votes
5 answers
4k views

Deploying code to multiple front end servers

We have a situation where we have multiple load balanced servers pointing to a common database. In the normal run of things this works fine and gives redundancy, scalability etc. However we are ...
Jeremy French's user avatar
8 votes
5 answers
3k views

Deploying content updates from staging server to live server

We are trying to deploy content updates from our staging server to our live server but are having difficulty finding a good way to do this. We need to be able to deploy new pages, page updates and ...
antgiant's user avatar
  • 522
8 votes
0 answers
1k views

How to deploy Drupal 8 to production? [closed]

I've got a Drupal 8 site in dev that was put together with composer. I think I've got a solid grasp on the dependency injection bit although the details are murky. Now I want to deploy it to ...
ponies's user avatar
  • 542
6 votes
2 answers
2k views

Using wget to get the latest module version

I was contemplating building a quick bash script to wget all of the modules I use on Drupal sites but every time the module version changes, the link changes. Take for example the views module. At ...
Ben Swinburne's user avatar
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?
Jigsaw2300's user avatar
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 ...
gagarine's user avatar
  • 682
5 votes
6 answers
5k views

Best method to enable/disable modules depending on the environment

What would be the best solution to enable/disable modules depending on the site environment (dev, stage or production)? Created a database dump containing the system table for each installation. Then ...
Cyclonecode's user avatar
  • 3,392
5 votes
1 answer
4k views

How to set up drush aliases for a local server for rsync?

I'd like to use drush to sync files from local server to production server. I have edited the aliases.drushrc.php file and placed inside /drush/aliases in both local and remote machines. Everything ...
ccamara's user avatar
  • 398
4 votes
3 answers
128 views

Is there is a module like, "dbcm"?

Is there is a module like dbcm in Drupal 7? I want to know changes happen in database, so I can update my production sites with all configuration changes: new block, new views, new (CCK) fields. I ...
Ahmed's user avatar
  • 1,429
4 votes
1 answer
158 views

Best practice to deploy an update which depend of a new configuration

In an entity type, I need to replace a field by another with a more complexe behavior. This new behavior can reproduce the old field and add new. Like this behavior have an impact on the design, I ...
Claire D's user avatar
  • 656
4 votes
1 answer
858 views

git post-receive hook to trigger drush rsync without prompt or with predefined answer

I have set up post-receive hook on my staging server, so whenever I push from dev server a master branch, it updates staging webroot and triggers drush rsync to update live site. #!/bin/bash ...
NenadP's user avatar
  • 1,517
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 ...
nizz0k's user avatar
  • 1,172
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 ...
shelane's user avatar
  • 511
3 votes
4 answers
2k views

Why don't I get any CSS after deploying my Drupal site?

I have deployed my Drupal 8 website, but I don't get any CSS on it. I deployed it on mydomain.com/newdrupal, maybe this needs extra configuring somewhere? When I check my logs, I have about 20 ...
stijn.aerts's user avatar
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 ...
KlineAl's user avatar
  • 83
3 votes
1 answer
2k views

how to deploy from dev to staging and production?

Hello so here is my question, I have three environments for my drupal 7 installation Dev, Staging, Production, right now Dev has all the new code and well everything is setup there. The move of the ...
efx's user avatar
  • 31
3 votes
2 answers
5k views

How do I add taxonomy terms and vocabularies to an exportable deployment plan?

I'm in the process of developing an installation profile for a new site. We're using Features to export much of our functionality, and are very interested in using the Deploy module integration with ...
David Watson's user avatar
  • 1,391
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 ...
Paul Topping's user avatar
2 votes
2 answers
327 views

Disable editing of post during update

I would like to disable user access to the administration during updates, such as bugfixes and additions of new content-types etc. I'm not completly sure on how to achive this. What would be the best ...
Cyclonecode's user avatar
  • 3,392
2 votes
1 answer
2k views

Best way to backup and restore the databases of a Drupal 7 multisite using Drush?

I'm looking for an easy way to backup (and if needed restore) the databases of a Drupal multisite using Drush. Drush command I use to backup all the databases: drush @sites sql-dump --result-file --...
user49731's user avatar
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 ...
Tom Nguyen's user avatar
2 votes
1 answer
106 views

Cloning a Drupal website without content

Drupal 8 ships with the new Configuration Management System. This system checks the sites UUID and only allows imports of configuration if the uuid is the same. This means, your steps to create a new ...
Pinoniq's user avatar
  • 207
2 votes
2 answers
333 views

What are best practices for reusing blocks between sites?

What's the best way of reusing blocks between sites in Drupal 7? I want to re-use not only the block, but also the block's position in my theme. Apparently, Features extra is designed for this. ...
big_smile's user avatar
  • 2,828
2 votes
1 answer
236 views

How to maintain and update a Drupal installation and its modules?

I'm looking for a comprehensive tutorial on best practices for updating and maintaining a Drupal installation and it's modules where there are multiple instances of the site, that is having a ...
Lester Peabody's user avatar
2 votes
1 answer
360 views

Best method of pushing content changes that contains paragraph fields from dev to production?

I manage a very big site with over 30k nodes and these nodes have many fields in them including paragaph fields with many sub fields in them too. Currently when testing and adding in content. I have ...
Patoshi パトシ's user avatar
2 votes
2 answers
82 views

How to deploy a module locally for testing?

I'm currently developing my first custom module for Drupal 7 and am having a hard time finding documentation about the available local deployment strategies. I have a custom module project, ...
Eric MORAND's user avatar
2 votes
2 answers
434 views

Run Simpletest tests on Jenkins

I am trying to run a group of tests(Simpletest) for my custom modules through Jenkins. Firstly I tried drush test-run (...) which has been removed from drush. Then I tried php scripts/run-tests.sh --...
Thanos Korakas's user avatar
2 votes
1 answer
368 views

Drupal Deployment to Dev & Prod and Git Code Repository Setup

I have a dev and a prod server with 4 other developers. What is the most efficient way of setting up a development code push environment without the need to have to get too involved in the process? I ...
Patoshi パトシ's user avatar
2 votes
1 answer
4k views

Site off-line with correct data in settings.php

I'm trying to set up a development folder for a Drupal6 already existing website. Under htdocs/sites/<website>/settings.php I have the following line in order to connect to the drupal6 DB: $...
rfc1484's user avatar
  • 437
2 votes
2 answers
164 views

Install.php available after xcopy deployment

I created a Drupal 7 site with Sqlite on my dev machine. When I go to localhost/install.php it says: Drupal is already installed. After deploying the whole bunch to shared hosting (windows) the ...
Koen's user avatar
  • 186
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 ...
Anish Sheela's user avatar
2 votes
2 answers
647 views

How to deploy a site?

I have Drupal 8 website created with composer. I put all files to my remote server in the sitename/www/ but my page won't load. I receive such an error: Fatal error: Class 'Drupal\Core\DrupalKernel'...
user63301's user avatar
  • 231
2 votes
1 answer
96 views

How to keep Drupal site code in version control in sync with production code when using drush updates on servers?

I have 50 D7 sites I support (none are multisite). We do local development for changes to themes and modules tied to new functionality and bug fixes. Once the update works locally, we check that into ...
Purcell's user avatar
  • 131
2 votes
1 answer
98 views

Creating menu items for views during installation of a custom install profile fails

I have created a custom installation profile in which I enable some default features and modules. In the profile I added an extra task at the end in witch I enable a custom deployment module. That ...
Hatznie's user avatar
  • 184
2 votes
1 answer
92 views

How to theming and deploy custom blocks which created in admin UI?

I've created some custom blocks in my development environment and export them with Features + FE Block with given machine names. And then deploy and enable them in my staging environment. Just like ...
hutushen222's user avatar
2 votes
0 answers
54 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 ...
Amy's user avatar
  • 21
2 votes
0 answers
353 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 ...
Dynamdilshan's user avatar
2 votes
0 answers
170 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 ...
fallenturtle's user avatar
2 votes
0 answers
117 views

What are the advantages, for managing a single multisite instance of Drupal, to using drush make instead of git fetch & merge?

I don't intend to publicly distribute an installation profile for my multisite instance. Are there still advantages to using platform/site makefiles to move code updates through dev/test/production ...
Chris's user avatar
  • 21
2 votes
1 answer
45 views

Merging new contents with new functionalities

Assuming a situation when you develop a new functionality on a local copy of an already published site for quite a while, during which period the client adds new content over and over again. How do ...
no more drupal's user avatar