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

The tag has no usage guidance.

3
votes
1answer
871 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
476 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
2answers
2k views

Magento 2: Can't switch from developer to production: “Command returned non-zero exit code:”

I've seen two other threads with this issue but I have been unable to resolve it with the solutions provided. I've increased my memory limit to 1G in php.ini and I've set ini_set('memory_limit','2G')...
1
vote
1answer
3k views

Run Grunt deploy task -> Fatal error: Class 'Locale' not found

I NodeJs installed, I installed the Magento2 Grunt that works, but if I run the command "grunt deploy" it delete all from the folder pub/static/ but do not deploy and returns me the error below. Can ...
0
votes
1answer
788 views

Magento2 not auto generate static files

i've some issues with auto generating static files in pub/static folder after use magento setup:static-content:deploy if i delete some static file generated by deploy like css and i point to the url ...
0
votes
2answers
642 views

Deploy Production mode via SSH gets stuck at 'Static content deployment'

So, I guess this is kinda vague and hard to explain, so I'll try to give some detail to help contextualise the problem. I have a Magento 2.0.0 install, that I installed via cPanel's Installatron. ...
2
votes
2answers
2k views

Magento2 static-content:deploy not generating admin

When using: bin/magento setup:static-content:deploy Only the blank and luma theme will be generated but not the admin one. Does anyone know if there is a setup somewhere to specify the themes?
7
votes
3answers
763 views

static-content deploy error

running static-content:deploy on multi store-view, fails with following error variable @media-common is undefined on theme where the language en_US
6
votes
3answers
10k views

Static content deploy issue

I am creating a custom theme. Now I added a css file, only for checkout page. css file call by default_head_block.xml at app/design/frontent/Amit/Customtheme/Magento_Checkout/layout/ <?xml ...
1
vote
2answers
5k views

Running php bin/magento setup:static-content:deploy for different languages

Whenever I run php bin/magento setup:static-content:deploy it always generates files for en_US. I would like it to generate files for en_GB instead. How do I achieve this? And is there a reference ...
1
vote
2answers
1k views

Magento 2 cutom theme is not deployed

I have created a custom theme for Magento 2 production version. I have selected my theme from the back-end. But it renders only HTML. I deployed the static content but my theme is not in the pub\...
25
votes
7answers
28k views

magento2: how can i deploy my theme only

I was using this for deploy the content but it is taking too much time. php bin/magento setup:static-content:deploy then i figure out adding the language make fast but it still deploy all the ...
5
votes
3answers
543 views

Should a development team use a single pair of repo.magento.com keys?

I understand that in order to use composer with Magento 2, you need to set up your instance with a public key and private key per the documentation. If you’re working in a team, should the team use ...
2
votes
1answer
356 views

What is the proper way to run an UpgradeSchema.php file in Magento 2?

In Magento 1, you updated a database schema (add a table, column, etc.) by creating an upgrade_v[Previous]_v[Current].php file, change the version number in the config.xml, and Magento would look in ...
8
votes
3answers
20k views

Fatal error “Allowed memory size” while run setup:static-content:deploy

I am trying to setup Magento 2.0 (community) in a WAMP server and I am getting the error below all the time while I run the command for deploy the assets static due to symlink issues at Windows ...
3
votes
3answers
1k 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.
39
votes
13answers
54k views

Magento2: Re generate css file in pub/static folder

I have installed Magento 2 and set developer mode, then I have installed one module that contains css and js files. The module works fine and css and js files are rendering from pub/static folder. Now ...
1
vote
0answers
116 views

magento 1.9.x Modman vs modgit

I'm looking for best practice in order to manage magento submodules, my plan was to use modman but I've heard about modgit. Is there any benchmark modman vs modgit? Advantages / disadvantages or ...
1
vote
0answers
146 views

Capistrano & Magento - Previewing new deploy and manually update symlink

I am using a Capistrano deployment workflow for a Magento project. On deploy Capistrano builds this Magento project on the server using https://github.com/Cotya/magento-composer-installer. The issue ...
5
votes
1answer
353 views

What files/folder do not belong on production?

Some community members suggest that folders like downloader and dev don't belong on a production environment. Is there an official list somewhere? What else has no place on the production server?
3
votes
2answers
408 views

Packing a extension for connect with an CI

Trying to build my extensions more automatically and without magentos GUI. I've wrote a little script, based on a blog post by Sven Varkel, it pulls a vanilla magento source base and my extension, ...
3
votes
1answer
147 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 ...
1
vote
1answer
77 views

Preserve Maintenance Mode during Magento Core Deployment

On remote webserver, i am deploying Magento core and modules through modman and Jenkins. During the deployment, a static maintenance page is shown which i enable and disable by the file maintenance....
6
votes
1answer
1k views

Magento upgrade best practices - moving from dev to production

I see very little existing posts ANYWHERE about best practices for managing upgrades so I'm hoping this helps me and others. I have 2 Magento Environments: Production/Live: Running 1.7.0.0 ...
1
vote
3answers
61 views

Capistrano deployments to an nginx webserver results in bad asset URLs

I am using Capistrano to deploy Magento code to a webserver that is running nginx. Nginx web root for test.url.com is /var/www/html, which on the filesystem is a symlink to /opt/magento-codebase/...
10
votes
2answers
569 views

One Chef to Rule Them All

I'm looking into chef to automate Magento deployments — both into standard Magento hosting options as well as environments like EC2. I've googled around and I see numerous recipes, but none really ...
7
votes
1answer
1k views

What permissions schema should I use when deploying Magento securely?

We run what I feel is pretty standard Magento setup: Deployed via rsync (it should also be deployable with git pull and scp/SFTP for simpler server configurations and to make developers' lives easier....
2
votes
2answers
150 views

Using Upgrade files in Magento 1.7

In our project 04 different developers have each own environments (Dev, Prod) in Localhost. And we have also 02 Environments in Server (Dev + Prod). My question is: 1- When 02 developers work in the ...
1
vote
3answers
289 views

Binary logs in Magento 1.7

We are a team working with Magento 1.7. In order to manage deployment between different developer working with the same database of Magento. We suggest to use binary logs. Each developer will possess ...
2
votes
1answer
123 views

The way to renovate Mage site (live -> develop -> live)

we have some live sites since Mage 1.4 and are now @ 1.7 We want to upgrade/renovate the site by adding new modules, removing old, and changing the theme + CSS. Now I have always been wondering what ...
74
votes
6answers
12k views

What is the best deploy strategy?

Setting up a Magento store is not only a matter of developing self-installable extensions but requires also a lot of "manual entry" operations such as creating end editing attributes, categories, ...