21 votes
Accepted

Magento2 - local / staging / production deployment & gitignore

In fact, every day I am less convinced about the utility of Magento 2 production mode, unless you are not going to change anything in the project. Can you change my mind? I'm not sure if I understand ...
Fabian Schmengler's user avatar
9 votes
Accepted

Magento 2 - How to view static content deploy errors

I reckon there's several types of errors that can be triggered by the deployment. First you can see that Exception are handled directly in the execution in Magento/Deploy/Console/Command/...
Raphael at Digital Pianism's user avatar
8 votes
Accepted

How to deploy public PHP files in Magento 2 extension?

First part is how to do this from an extension builder perspective. I'm leaving the second part as reference for project builders. Extension builder answer: You can't do this from within an ...
Vincent Hornikx's user avatar
8 votes

Magento 2 setup:static-content:deploy symlinks

I was able to resolve this by adding this node in app/etc/di.xml <type name="Magento\Deploy\Model\Deploy\LocaleDeploy"> <arguments> <argument name="...
Sergey Boyko's user avatar
7 votes

Magento2 moving from staging to live site

You can use ansible to automate the steps : From a global point of view : (Manage all your changes with setup/upgrade scripts) backup database toggle maintenance disable crons retrieve updated code ...
Franck Garnier's user avatar
6 votes

Magento 2 deployment process

Agree 100% with claudiu-creanga on not committing vendor and also avoiding running composer install in production. The way we have handled this is to have a live folder and a release-candidate folder....
Robert Egginton's user avatar
6 votes

app:config:dump locks everything in configuration

You need to delete all data from app > etc > config.php except modules array. After run below command setup:upgrade setup:di:compile setup:static-content:deploy -f cache:flush. All your system ...
Himanshu's user avatar
  • 1,761
5 votes
Accepted

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

Updater and Setup cron jobs are used during upgrade via Web Setup Wizard only. Particularly, to enable message exchange between Setup component and Updater application. So if you are not planning to ...
Alex Paliarush's user avatar
5 votes
Accepted

Magento2 changes not deployed

So i got it working. I will post here a general guide for the developer mode and what needs to be done. With the shown shell commands i assume that you are in your Magento2 root directory. To get the ...
remklov's user avatar
  • 331
5 votes
Accepted

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

From what I've gathered at the sessions and demos with the Cloud booth at Imagine 2016, you can use any tools and processes you want to use. If you already have processes implemented, they should not ...
Brett's user avatar
  • 1,854
5 votes

Magento2 - local / staging / production deployment & gitignore

To my mind, wait Magento 2.2 or try to implement a similar approach. Magento 2.2 introduces pipeline deployment by for example separating build server with production server. Here is the official ...
Franck Garnier's user avatar
4 votes

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

Now it possible. You can use options --theme/--exclude-theme to restrict the list of themes to use. Also, see more options to restrict items to deploy: bin/magento setup:static-content:deploy --...
KAndy's user avatar
  • 20.8k
4 votes
Accepted

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

According to this Magento 2 Github issue the functionality for this has not yet been implemented although they are in discussions about adding it. As a workaround you can apparently delete and ...
Ben Crook's user avatar
  • 15.7k
4 votes
Accepted

Magento 2.2 Build system

Working build system Based of issue 10041 for RC version I figure that we need to remove env.php file if exist. Second issue 11372 throwing error: Fatal error: Uncaught Error: Call to a member ...
Mateusz Lerczak's user avatar
4 votes

app:config:dump locks everything in configuration

I also do not think that dumping all settings is a good idea, so I created this PR to be able to skip dumping the whole core_config_data: https://github.com/magento/magento2/pull/12410 As I mention ...
Jalogut's user avatar
  • 790
4 votes
Accepted

How to get the deployment version in Magento 2?

I found a way to get the current deployed version. Thanks @Black <?php namespace MyModule\MyVendor\Model; use Magento\Framework\App\View\Deployment\Version\StorageInterface; class ...
Milind Singh's user avatar
  • 1,584
3 votes

Magento 2 - How to view static content deploy errors

You can often see errors within your less by viewing the css file that is generated on your development environment. This doesn't quite answer the question but will hopefully be helpful to someone.
Hob Adams's user avatar
3 votes

Magento 2 Auto deploy Script using capistrano or other tools

We successfully used this one to deploy magento 2 single server projects: https://github.com/davidalger/capistrano-magento2 by @davidalger. It also supports multiservers setup, but we havent yet look ...
Razvan Avramescu's user avatar
3 votes

Magento Theme Package

Can you through how to instal date / time update. This way if you use it with custom theme, the first refresh Magento populate your database with CMS Blocs. Create file and put the content: app/etc/...
St3phan's user avatar
  • 2,907
3 votes

Magento 2 deployment process

So far we also commit the vendor folder, which of course adds a whole lot of files to your repo. (Be sure to remove any .git folders in the vendor composer files, as otherwise the folders content will ...
tecjam's user avatar
  • 4,033
3 votes

app:config:dump locks everything in configuration

This is by design. Any configuration contained in config files will be locked in the Admin Panel. The recommendation is to make all needed configuration updates on your system before using the app:...
mkotov's user avatar
  • 416
3 votes

app:config:dump locks everything in configuration

If you absolutely MUST unlock all configuration as I had to do, there is a way but it's quite tedious and time consuming. As this can be dangerous it goes without saying you should backup your ...
Zankar's user avatar
  • 554
3 votes

Production Mode app:config:import issue

I had this same issue - the solution for me was clearing the opcache.
Sam Brown's user avatar
3 votes

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

It is necessary because it ensures all developers run the app with same disabled/enabled modules and config. I run into conflicts with config.php a lot due to changed module array. I haven't put this ...
Ryan Sun's user avatar
  • 186
3 votes
Accepted

How to deploy local source to live server for magento 2

If you are doing it manually this is the process. Copy whole project to your server machine in the deployment path(probably /var/www/html in linux). Dump your SQL database from your local machine. ...
Abdul Pathan's user avatar
  • 2,802
3 votes

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

I had the same problem when upgrading from 2.3.5-p1 to 2.3.5-p2, even when the deployment included disabling the Magento_GoogleShoppingAds module in config.php. In my case the solution was to flush ...
Maciek Lewkowicz's user avatar
3 votes

Call to undefined method Magento\Eav\Api\Data\AttributeExtension::setIsPagebuilderEnabled()

If anyone facing this issue, please have look at this hotfix diff --git a/vendor/magento/module-page-builder/Plugin/Catalog/Model/Product/Attribute/RepositoryPlugin.php b/vendor/magento/module-...
Nilesh Dubey's user avatar
  • 1,087
2 votes
Accepted

Magento 2 deployment process

Finally we opted out for a service like deploybot (http://deploybot.com/). You can use capistrano which is free. Deploybot creates a docker container while the composer install is running and if the ...
Claudiu Creanga's user avatar
2 votes

Magento 2 : Can't deploy my custom theme

Never mind, I already found the answer: it turns out Magento only renders themes when there is content in the web folder inside your template.
Giel Berkers's user avatar
  • 12.3k
2 votes
Accepted

Magento2 404s on css and js

Try bin/magento deploy:mode:set developer bin/magento cache:flush See Introduction to Magento modes Edit Double check to make sure pub/static/.htaccess exist. and try running bin/magento setup:...
MagePal Extensions's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible