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. ...
11
votes
2answers
4k 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 ...
11
votes
1answer
254 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
888 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
898 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
866 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
525 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 ...
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 ...
8
votes
1answer
1k 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 ...
7
votes
2answers
10k 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
179 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
534 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 ...
5
votes
5answers
6k 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 ...
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
212 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
368 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
205 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
998 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
3answers
2k 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 ...
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
2k 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
1k 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
1answer
208 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
64 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
175 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
572 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
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-...
2
votes
1answer
126 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
311 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
402 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
53 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
519 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
48 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
634 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
378 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
1answer
63 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
33 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
666 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
1answer
228 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 ...
1
vote
1answer
522 views

Should I run catalog:images:resize on each deployment or only incidentally?

The question is simple: Should I add bin/magento catalog:images:resize to our Continuous Integration script, running it on every deployment? Or is it's intent solely to run incidentally (since ...
1
vote
1answer
321 views

Can't download sample data from ssh anymore

I've always downloaded sample data from this link: http://www.magentocommerce.com/downloads/assets/1.9.1.0/magento-sample-data-1.9.1.0.tar.gz But today I got 404. I've read this answer (https://...
1
vote
1answer
25 views

Deploy magento site on AWS

I want to deploy a sample magento site on AWS. I need help to deploy site on AWS from scratch. Anyone can provide proper documentation for deployment of magento on AWS.
1
vote
0answers
57 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 ...