Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

0
votes
2answers
32 views

Magento 2 - fresh installation deploy

I have made a fresh installation of magento 2. Backend was displayed without any css/js format, bacause no file was placed in pub/static/adminhtml/Magento/backend/en_US/ folder. I tried using php ...
1
vote
2answers
30 views

Magento 2 Production Mode Issue

Can we set developer to production mode on the local server? Magento 2.x Php 7.x
1
vote
1answer
41 views

pub/static/_requirejs is not being created in magento 2 version 2.2.4

i am trying to include slick plugin into magento 2 through custom theme by requirejs but pub/static/_requirejs folder + files are not being generated on code deploy. file structure is following: /app/...
1
vote
0answers
76 views

Setup:static-content:deploy “Error : vendor/tedivm/jshrink/src/JShrink/Minifier”

The follwing error occurs during the command php bin/magento setup:static-content:deploy en_US de_DE execution, but the command continues to work. "Error : vendor/tedivm/jshrink/src/JShrink/...
0
votes
0answers
25 views

Magento 2 Autoprefixer in production mode

Magento 2 comes with a preinstalled autoprefixer for Grunt. But is it possible to use the autoprefixer in the production mode too? I have a lot of CSS which does not work without the vendor prefixes ...
0
votes
0answers
21 views

Deployments with Capistrano-Magento 2 - cap . command not found

I am deploying a magento 2 site using the capistrano, When trying run cap staging deploy from tools/cap - I am getting firstly: permission denied: cap Then if I run with sudo: cap: command not ...
1
vote
1answer
86 views

Deploying Magento 2 with a docker

I have a project Magento 2. It has a folder docker. Please tell me how to deploy an existing project with the help of a docker? Is there a good tutorial? All I've found is installing a magenta using ...
3
votes
2answers
112 views

Magento 2 - no css after pub folder has been deleted

I deleted the pub folder of my magento installation. Then I used php bin/magento setup:static-content:deploy and now the site has no CSS at all. How can I fix that? Thanks!
0
votes
2answers
384 views

Magento 2.2 set/Deploy Production mode stuck at 'Static content deployment'

I have configured my magento 2.2.3 in server and checked the mode. It was "default". Then I tried to change the mode to production with this command, php bin/magento deploy:mode:set production After ...
1
vote
1answer
23 views

How to tell from the code which language to deploy? [closed]

If you don't have access to Magento 2 backend, how to tell from the code which language to deploy? For example how do I know I should deploy this: php bin/magento setup:static-content:deploy en_US ...
0
votes
0answers
113 views

Deploy Magento 2 on DigitalOcean

I had been on shared hosting at GoDaddy and developed M2 website. Now I am willing to move to cloud (DigitalOcean. My problem is that I am new to clouding and want to install Magento 2.2 on Digital ...
0
votes
1answer
130 views

Magento2 deploy command not working and rest commands are working

I have tried to run this php bin/magento setup:static-contnet:deploy command on the magento root folder then it showing the below error "Notice: Undefined offset: 0 in /home/nuluv938/public_html/...
0
votes
0answers
24 views

M2: any changes require re-deploy (either in production or developer mode)

I have a fresh install of Magento 2.2.2 on side account at webhosts and the odd behaviors I'm experiencing contradicts the normal odd behaviors I'm reading about. I spent the last few weeks reading ...
0
votes
1answer
56 views

Magento 2.2: Git deploy error following composer installation

When cloning CE and deploying on Gandi servers, following their own instructions, the process is aborted with the error mentioned in the title. Preconditions Magento 2.2.1 CE PHP7.1 MySQL 5.6 Gandi....
0
votes
0answers
17 views

deployment error public/bin/magento:31

our magento 2 site currently sees PHP Fatal error: Uncaught Error: Class 'Cli' not found in /public/bin/magento:31 when deploying php -dmemory_limit=1G bin/magento setup:di:compile through ...
0
votes
3answers
86 views

How to run deploy command while memory exhausted and we can't able to increase server memory limit?

Sever memory exhausted while run content deploy command and sever memory can't be increase then how to run content deploy command?
1
vote
0answers
791 views

Static deployment errors Magento 2.2

Hi everyone I am having an issue after installing a theme. when I run php bin/magento setup:static-content:deploy I get: [Magento\Framework\Exception\LocalizedException] NOTE: Manual static ...
1
vote
2answers
555 views

Magento 2: Why my multi store isn't loading CSS?

I've set up multi-store with multi-domain, but I'm facing a weird issue that is default store is running perfectly but another store is not able to load CSS. Please help
1
vote
0answers
173 views

Magento 2.1 deploy static content production mode fails

after spending some hours with this issue I now dare to ask. I think I have overseen something stupid. After switching in production mode my, I run static content deploy command wich runs without any ...
0
votes
1answer
53 views

Magento 2 opposite of deployment (setup develpment environment)

Situation: I have got access to a live server that runs Magento 2 that was deployed with capistrano, so the structure looks like following: - releases - 20160311115120 - 20160325080754 - repo ...
0
votes
1answer
96 views

Magento broken after module disable

I have a huge problem with Magento on a live platform. I've disabled a few modules, which I don't use, via a command line. I've made it before already and had no problems with it. But now I can't ...
1
vote
0answers
46 views

Magento 2 deploy 1 pub static file

have a question, maybe somebody knows - how to add to deploy version only 1 pub static file in production mode without flush all deploy version. For example, i have some customer-side uploader and ...
0
votes
1answer
98 views

print.less file error when run deploy command

When running php bin/magento setup:static-content:deploy command it shows above error, I just replace the magento 2.1.6 files to magento 2.1.0 files now theme working fine but when run deploy command ...
0
votes
2answers
113 views

Error in setup upgrade and static content deploy

I repeatedly getting the following error while I try to execute php bin/magento setup:upgrade or php -d set_time_limit=3600 -d memory_limit=1024M bin/magento setup:di:compile Please help.
1
vote
3answers
1k views

Set default locale for bin/magento setup:static-content:deploy

When running deploy static content on my store i always need to add the locale at the end of the command or my store breaks. bin/magento setup:static-content:deploy en_GB I was wondering if I am ...
0
votes
3answers
601 views

Magento 2: Why my static content for languages are not generated after migration?

I made a backup of Magento 2 and copied the whole site to another host. I extracted files and created a database. Now I get no CSS loaded. They all are "missing". First I thought that it was caching ...
2
votes
2answers
1k views

how to speed up static content deploy for development

Especially after changing .html knockout js template files I have to always deploy static content with bin/magento setup:static-content:deploy <languages>. This makes development very slow. I ...
13
votes
1answer
1k views

app/etc/config.php in VCS or not

I have a question related with file app/etc/config.php. This file described here and defined: Magento base dir/app/etc/config.php, which contains the list of installed modules, themes, and ...
1
vote
2answers
46 views

Deploying issue in Magento -2

I have a js file. Everytime I change something I need to execute the following commands: php bin/magento setup:upgrade php bin/magento setup:static-content:deploy php bin/magento setup:static-...
2
votes
2answers
2k views

Magento 2, issue with getting “version” number in file paths

Not my first time to install Magento 2, but something strange this time. I have checked file permission, cleaned cache, deployed again. Files are created in pub/static in expected directories but ...
0
votes
3answers
353 views

Magento 2, how to deploy the content for specific area only (frontend or adminhtml) as requested parameter but in two languages

To save time when each time I need to deploy the content for changes in one area, how can I provide for example "adminhtml" as argument to be deployed in two languages? Below did not work: bin/...
1
vote
2answers
599 views

magento 2 static content deploy error: @minicart-icon-color is undefined

I have created a new theme, and deployed the static content, but it's giving me an error when the front-end static content deployment is running. That is: @minicart-icon-color is undefined in the ...
4
votes
1answer
224 views

What is the right way for using git and composer for modules in Magento 2? [duplicate]

Each of my module has a repository. I have dependency for my modules in composer.json in project folder. For deployment I need: in production: git clone, composer install. in develop: git clone, ...
3
votes
4answers
239 views

Problem setup:upgrade with CSS

My Magento 2 not load CSS in frontend. If I do php bin/magento setup:static-content:deploy, the problem is solved and load perfectly, but when I do setup:upgrade, CSS not load again. I know that ...
1
vote
1answer
146 views

automatic generation of dir/files under pub/static not working

automatic generation of dir/files under pub/static not working. When i google about this find that i have to delete that file in which i did change and then run below given command. php bin/magento ...
2
votes
0answers
82 views

Magento 2.1 and symlinks

My server structure is as follows: /var/www/htdocs_webroot/shop -> symlink to: /var/www/shop/deploy_xxxx-xx-xx/htdocs So I can redeploy magento easily and switch back and forth with one simple ...
3
votes
3answers
423 views

Magento 2: Overiding Admin Theme not working in Production Mode with CDN [SOLVED]

Magento 2: How to enable newly created admin theme & override module? After achieving this i have new issue now. I'm using CDN & in Production Mode. In Developer mode it works fine. I have ...
3
votes
1answer
142 views

Magento2, cleaning cache led to createApplication error

Instead of running cache:clean I removed the folders from var directory, now I get error index.php(38): Magento\Framework\App\Bootstrap->createApplication Even I can not deploy:content anymore :(
0
votes
1answer
763 views

M2 - Cannot change deploy mode to Production

I am trying to set the deploy mode on an M2 instance to Production from Developer. On my local environment however I keep getting the error message: Command returned non-zero exit code: '/...
1
vote
3answers
464 views

Magento2 compliling specific theme deploy error --area does not exist

I wanted to deply chosen theme by using the guide from here when I run magento setup:static-content:deploy --area frontend --no-fonts --theme Magento/luma the error is --area does not exist and I'm on ...
5
votes
1answer
807 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 ...
2
votes
0answers
340 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 ...
3
votes
0answers
824 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 ...
3
votes
2answers
7k views

Fatal error: Class 'Locale' not found magento 2.0.2 [closed]

when I run this command static-content:deploy then I got the below error "PHP Fatal error: Class 'Locale' not found in /opt/lampp/htdocs/magento/magento2_1/vendor/magento/framework/Locale/...
4
votes
1answer
1k views

magento 2.0 theme not working in 2.1

I created a theme in magento 2.0 that was working. Now, I updated the magento version to 2.1 and deployed the theme. The files get generated in pub/static folder but CSS files are not loading in head ...
0
votes
4answers
177 views

Magento static deply command

This is my first time posting on this forum. I have installed magento 2.0.7 in a cPanel hosting account. All is going well so far, I have added almost 1000 products already and I have also installed a ...
3
votes
1answer
4k views

Magento 2 deploy static files for specific theme only [duplicate]

How to deploy static view files for single, specific theme only?
3
votes
1answer
829 views

Why I cannot switch into given mode “develop”? [duplicate]

I use this basic environment Docker, with Magento 2.1. When I was tried to change the deploy mode, the terminal shows me: Cannot switch into given mode "develop" The permission's ok, and I had ...
1
vote
2answers
4k views

Magento 2 error when try to set production mode on

I'm trying to put my Magento 2 installation into production mode, when I try it I get following error Something went wrong while compiling generated code. See the error log for details. Command ...
2
votes
2answers
470 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 ...