Questions tagged [deploy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
81
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, ...
46
votes
15answers
71k 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 ...
31
votes
7answers
36k 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 ...
15
votes
1answer
2k 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 ...
10
votes
2answers
577 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 ...
8
votes
3answers
23k 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 ...
7
votes
3answers
16k 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 ...
7
votes
1answer
1k 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 ...
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....
7
votes
3answers
957 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
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 ...
5
votes
1answer
465 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?
5
votes
3answers
790 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 ...
4
votes
1answer
2k 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 ...
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
451 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
1answer
1k 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 ...
3
votes
2answers
6k 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 ...
3
votes
2answers
511 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
2answers
10k 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/...
3
votes
2answers
3k 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')...
3
votes
4answers
416 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 ...
3
votes
1answer
183 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
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
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
2answers
506 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!
2
votes
3answers
3k 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 ...
2
votes
2answers
3k 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 ...
2
votes
2answers
4k 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?
2
votes
2answers
6k 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
153 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 ...
2
votes
1answer
179 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 :(
2
votes
2answers
540 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
1k 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 ...
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 ...
2
votes
1answer
729 views

failed to open stream: No such file or directory for static-content deploy

I have recently added a new root source css file for magento storefront by putting it in default_head_blocks.xml throught below statement. <css src="css/custom.css"/> Now I ran upgrade command ...
2
votes
1answer
134 views

Magento 2: publish changes from development env to production

I have two environments for my store developed in Magento CE 2.2.5, one is for development use (where I run the store in developer mode), the other is the production environment (where the I use the ...
2
votes
1answer
66 views

Commands for correct deploy

What are the basic commands to be executed for Deploy in Magento 1 and Magento 2 after doing the git pull?
2
votes
1answer
673 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/...
2
votes
3answers
615 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 a new issue now. I'm using CDN & in Production Mode. In the Developer mode, it works fine. ...
2
votes
1answer
393 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 ...
2
votes
1answer
540 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 ...
2
votes
0answers
103 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 ...
2
votes
0answers
490 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 ...
1
vote
2answers
8k 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
3answers
298 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 ...
1
vote
1answer
4k 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 ...
1
vote
1answer
317 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 ...
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\...
1
vote
1answer
30 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 ...