Questions tagged [deployment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
18
votes
3answers
2k views

Managing Magento/Composer/Deployment

So, I'm enjoying using the hackathon Magento Composer installer, but I'm struggling to understand how others use it in relation to a deployment service. Currently I'm using DeployHQ, and yes, I can ...
15
votes
1answer
2k views

Can you achieve zero downtime deployment with magento2?

If you have a new module and you need to run setup:upgrade then I don't see a way where you can have zero downtime. It's always going to be 10-20 seconds down because you need to upgrade the database. ...
13
votes
2answers
5k views

Magento2 - local / staging / production deployment & gitignore

This could be one kind of discussion more than a question. I'd like to know which deployment policy you follow with Magento2 & local > staging > production environments After some tries we've ...
12
votes
1answer
1k views

Reasons to setup cronjob for setup:cron:run and update/cron.php on a deployed production system?

In Magento 2 there are three commands that should be set up as cronjob * * * * * <path to php binary> <magento install dir>/bin/magento cron:run | grep -v "Ran jobs by schedule" >> &...
11
votes
1answer
287 views

Choose which file to install via Composer based on Magento version

It would be very convenient to include multiple versions of code in a composer'd module and have composer work out which version to deploy, based on the Magento version of the installation target. ...
11
votes
1answer
1k views

Magento 2 deployment without downtime - are there proven production strategies?

We know the recommended Magento 2 deployment process which roughly contains the following steps: php bin/magento maintenance:enable composer require <package> <version> --no-update ...
11
votes
1answer
1k views

Magento2 CI Server Integration for Production

What are steps, guidelines and flows that needs to be followed for a successfully Magento2 Continuous Integration workflow ?
9
votes
1answer
1k views

How to deploy DB changes from dev to production in Magento

I am aware that modules have install and data setup scripts to make the DB portable from dev to production. But in our case we have UI developers who add attributes and products through the admin ...
9
votes
1answer
2k views

Magento2 moving from staging to live site

I have not found too much information on an efficient process for a rolling development of my site so I can add custom modules and other file changes on staging and then push those changes onto the ...
8
votes
4answers
7k views

Magento 2 deployment process

Currently we commit composer.lock to the repository and then run composer install --no-dev on the production server. I don't think this is the best way to do it because it takes a few minutes for ...
7
votes
5answers
8k views

app:config:dump locks everything in configuration

I am using pipeline deployment. As suggested in Magento 2.2 documentation, to use pipeline deployment process use below code: app:config:dump and add config.php to source control. But when i ...
7
votes
2answers
11k views

Magento 2 - How to view static content deploy errors

When I run php bin/magento setup:static-content:deploy I have had some errors in my theme. I have got to the bottom of them but it was a pain, I had to manually go through all my LESS files to check ...
7
votes
1answer
2k views

Magento 2 setup:static-content:deploy symlinks

When removing all the pub/static files in Magento 2 and opening the homepage, the files are generated as symlinks. When using the command setup:static-content:deploy the files are copied, even after ...
6
votes
2answers
181 views

Apply Security Patches on Multiple Magento Installations

I have multiple Magento websites with different versions (1.9.0.1, 1.9.1.0 and 1.9.1.1) in multiple servers. Is there any more easy and painless way other than ssh into each server separately and ...
6
votes
2answers
564 views

Gruntfile.js, Autoprefixer and bin/magento setup:static-content:deploy

The vanilla checkout of Magento2 contains a Grunt boilerplate including the autoprefixer task. It works all sweet and dandy (according to our frontend devs). However now as I need to make the whole ...
4
votes
3answers
3k views

magento2: how to only deploy used themes to speed up static deploy

Does anyone know if it's possible to restrict the setup:static-content:deploy to only deploy themes I actually use? For instance i have a theme that inherits from Magento/blank and we have two ...
4
votes
3answers
2k views

Magento 2 Auto deploy Script using capistrano or other tools

Does anyone have a script which will deploy magento2 to the server using Capistrano or other auto deploy scripts? Thank you.
4
votes
1answer
233 views

How can I run unit tests / code sniffs for individual modules using a CI provider?

At the company I work with, our modules are individual repositories. We add those as composer packages to our Magento 2 installation by adding GitHub as a repository in our composer.json: "require": {...
4
votes
1answer
640 views

Structure project using Vue Storefront and Magento 2

Right now I have a Magento 2 installation which is run through a customized vagrant box, and I would like to use VS for the frontend, but I’m a little confused on how to best handle deployment to ...
4
votes
0answers
208 views

Order of Magento 2 deployment tasks [duplicate]

What order do the deployment tasks of static-files, DI compilation, and setup:upgrade have to be performed? In order to deploy updates for a Magento 2 site to live, the common approach would be to ...
3
votes
1answer
1k views

How to deploy public PHP files in Magento 2 extension?

I need to deploy a publicly accessible PHP file as part of a Magento 2 extension. Obviously this is not intended, as usually all requests should be routed through index.php, but in this case it's ...
3
votes
1answer
1k views

Magento Enterprise Cloud Edition: What are the development and deployment tools?

The new PaaS solution of Magento Enterprise 2 has just been released, "Magento Enterprise Cloud Edition". Other than with Magento Go, you have full access to the source code and you can do whatever is ...
3
votes
1answer
1k views

Magento2 changes not deployed

I am working with Magento2 and have the problem, that my changes are only visible after a full php bin/magento setup:static-content:deploy en_US. Prerequisites: Magento 2.1.0 Linux VM with Apache / ...
3
votes
1answer
215 views

Cache:Flush fails after updating from Magento 2.3.4-p2 to 2.3.5-p2

When deploying the update from Magento 2.3.4-p2 to 2.3.5-p2 the cache:flush command does not work. As error message I get Class Magento\GoogleShoppingAds\Model\Cache\Type does not exist. I checked ...
3
votes
2answers
3k views

Magento 2 - Really Bad Performance in Docker

we are using Docker on macOS for development and deployment and have massive performance problems especially in deployment. Our deployment does a full project build with: git clone composer install ...
3
votes
1answer
2k views

GIT deployment and what files are required in production environment

At the moment development is done on a local server to myself. The site is not live but testing is done on what is to be on production server and a git push from development triggers a webhook that ...
3
votes
3answers
3k views

Magento 2: connect to existing DB

I have deployed Magento 2.1.2 CE and have setup the database to use with this instance. # http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli-install.html#instgde-install-cli-...
3
votes
1answer
298 views

how to avoid site downtime on module install?

i have to run setup:upgrade command when ever installing new module in magento2. otherwise its giving error in front end.but if any user browsing on this time it will give error.how to handle this ...
3
votes
0answers
198 views

Magento 2 caches keep disabling themselves [duplicate]

During deployments we sometimes have the problem, that all the caches disable themselves, for no apparent reason. During deployment, we basically execute the following commands: bin/magento ...
3
votes
1answer
348 views

error in pipeline deployment

Using this URL https://blog.e-zest.com/magento-2-pipeline-deployment-with-minimum-downtime I have followed all steps for dev and build server, then now when I am running php bin/magento app:config:...
3
votes
0answers
1k views

Recommended continuous integration tools for Magento 2 [closed]

For companies deploying Magento 2, what CI (continuous integration) tools do you recommend? We use GitHub and commonly deploy to AWS Beanstalk instances, but some of our clients use Linux VMs on ...
2
votes
1answer
2k views

Magento 2.2 Build system

I trying to setup build system for setup:di:compile and setup:static-content:deploy based on official devdocs. Build system The build system compiles code and generates static view files for ...
2
votes
2answers
606 views

Deploy Magento 2 website on Staging server and Composer

I installed Magento 2 locally using Composer I use Git to track my code I need to deploy my local Magento 2 site to a staging server (shared hosting) 1) For what do I need Composer anyway on Staging ...
2
votes
1answer
79 views

Magento Theme Package

Required database backup files with theme. I have build custom theme but need to get all static block data as well as cms pages database script and other required layout updates with theme deployment....
2
votes
1answer
179 views

Do I need a production database to run integration tests?

I'm trying to run integration tests on our CI server using a docker container. Now the documentation states that I only need to have a test-database (called magento_integration_tests), so I created ...
2
votes
1answer
402 views

Magento 2 - Deploying local to live, why rsync doesn't work

I've recently deployed a magento 2 from local to live environment, local was working fine and everything was running smoothly. I've also enabled production mode, but i've not turned on css or js ...
2
votes
3answers
488 views

Magento2 export and import configurations instead of uploading the DB

Is it possible to move settings like product, customers and categories attributes, store settings and others that doesn't include data product, customers, orders, categories, etc ... Instead of ...
2
votes
1answer
1k views

When Compilation and Deployment is required in Magento 2

Its my first project in magento. I am confuse about deployment and compilation. When i do compilation every time after changes i got some error. Also deployment have many more time memory failed and ...
2
votes
1answer
141 views

Why would you add the modules array in app/etc/config.php to source control?

As of Magento 2.2 it's recommended to add config.php to your source control to facilitate pipeline deployment. I have some questions and issues with this. I'm hoping somebody can share their ...
2
votes
1answer
78 views

Magento 2: How do you move Catalog/CMS changes to production?

The magento 2.2 documentation, in its Pipeline Deployment Overview , states the following (brackets & emphasis mine): [the production system is] Your live store. You should make minimal ...
2
votes
0answers
533 views

Best way to deploy from dev to production?

Currently using Magento 1 for my website and I needed to deploy a new "Build" onto my live server. For the past few months, I would zip the dev server files, FTP to live server. I would also export ...
2
votes
0answers
49 views

Deploy Sample Data Content to app/code folder instead of vendor

I can deploy sample data to vendor folder with with the command bin/magento sampledata:deploy in Magento 2 however I want to edit this command to deploy sample data to app/code/magento folder instead ...
2
votes
1answer
679 views

Magento 2 deployment from Dev to Staging using Git

I have a local Dev environment and installed Magento 2 using composer I initialized the local /magneto2/ folder as a Git repo I added this .gitignore file to the root of my /magneto2/ folder I have a ...
2
votes
0answers
399 views

Magento deployment on multiple AWS EC2 Instances with ELB [closed]

What is the best way to manage multiple Magento based instances behind a load balancer? How do i manage the replication between the instances. How do i replicate the new products/images or any other ...
1
vote
2answers
55 views

How to get the deployment version in Magento 2?

I want to save deployment version in DB from where I can get the currently deployed version?
1
vote
1answer
38 views

How to deploy local source to live server for magento 2

I have tried many ways to deploy my local server project to live server or another PC but not working very well. so please give me a better and exact solution for it. thanks in advance.
1
vote
1answer
64 views

Magento2 404s on css and js

Is there a list of command line tools to enter for changing modes? I went from developer mode to production and back again and now my css is all 404s.It doesn't feel like it should be this hard.
1
vote
1answer
1k views

Magento2: Missing commands on build server

I try to make a Magento2 Pipeline Deployment and running in a awkward error. But first a few words to the deployment: I use a docker container with installed php and nodejs. I copy in the container ...
1
vote
2answers
963 views

Production Mode app:config:import issue

after a new deployment I get the following error: {"0":"The configuration file has changed. Run app:config:import or setup:upgrade command to synchronize configuration.","1":"#0 \/var\/www\/dev.xxx....
1
vote
1answer
333 views

Magento 2: How to deploy an image file on production site?

We changed one image file at this location and now we want to deploy it on live: app/design/frontend/theme/theme1/web/images/sample.jpg We learned that the only way to deploy static files in ...