Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [deploy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
169 views

Magento2: The env.php file keeps automatically changing

The file env.php is changing automatically and randomly. Environment: Cluster server Deployer Magento 2.4.6-p3 Redis, varnish and cloudflare php 8.1 Here is the actual the env.php 'session' => [...
Mohammed Alrefai's user avatar
0 votes
2 answers
253 views

css file can not be read?

I am trying to deploy a magento2.4.4 cloud staging environment and getting the below error. I am not sure how to troubleshoot this. The contents from the "/app/pub/static/adminhtml/Magento/base/...
Jayreis's user avatar
  • 705
0 votes
1 answer
328 views

Magento 2 Cloud: turn on developer mode

I need to turn on developer mode, but NOT via the following command: bin/magento deploy:mode:set developer I need to turn it on via deploy. Does anyone know how to do it?
Elf-12's user avatar
  • 11
1 vote
1 answer
29 views

Cannot set developer mode on Magento using docker

I'm running the command bin/magento deploy:mode:set: developer inside a docker container. It's outputting the same error below for many files. The "/var/www/html/var/cache/mage--7/mage---...
Douglas Vicentini's user avatar
1 vote
0 answers
225 views

Running Deploy Hook via bin/magento-docker ece-deploy results with Could not open input file: ./vendor/bin/ece-tools returned non-zero exit status 1

I am trying to get a project that is already live in production setup and installed on my local for development. After running my bin/magento-docker up -d all of my containers start successfully. But ...
Denoteone's user avatar
  • 111
0 votes
1 answer
332 views

Static files don't fully deploy on a docker-based deployment

I'm having trouble implementing the deploy strategy described in e.g. https://info2.magento.com/rs/585-GGD-959/images/The%20New%20Magento%202.2%20Deployment%20Capabilities%20%26%20Patterns.pdf I build ...
Roger Firpo's user avatar
0 votes
1 answer
593 views

Magento 2 front end looks like no css and js after deploying static content

I'm using magento 2.4.3, and I did a couple putty commands, like upgrade, compile, and now php bin/magento setup:static-content:deploy -f but now the front end is loading apparently without css and ...
alexcr's user avatar
  • 1,487
2 votes
1 answer
646 views

Setup Folder does not get populated when using magento-deploy-ignore in Composer

Does anyone know why a composer setup like this could cause the post-cmd-install magento 2 base deploy to not fire correctly? "extra": { "magento-force": "override", ...
MageIdiot's user avatar
  • 138
0 votes
1 answer
787 views

Magento 2.3.2 - Problems with merged CSS/JS file cache on production

We experience an issue almost every single time we deploy new code to the website, whereby we get 404 errors for merged CSS/JS files. To me, this seems like there is something pointing to the location ...
Keydose's user avatar
  • 101
0 votes
2 answers
186 views

Magento 242 bin/magento deploy:mode:set production deploy all languages

Whenever i run command bin/magento deploy:mode:set production, it always auto deploy all languages, takes a long time, makes high CPU and RAM usages. I would like it to generate files for en_US ...
Nhat Lich's user avatar
0 votes
1 answer
45 views

Error: Unable to upload application to Magento Cloud

When I try to push a new code to my Magento Cloud instance I get this error below, it doesn't matter which version, even a version that worked previously. How could I find the issues?
Rafael Corrêa Gomes's user avatar
2 votes
2 answers
3k views

Magento 2.4: Catalog Search index exception: Could not ping search engine: No alive nodes found in your cluster

We have installed Magento 2.4 on our local machine. After installing, we have got the below error when doing the setup:upgrade Could not validate a connection to Elasticsearch. No alive nodes found ...
MagentoDev's user avatar
0 votes
1 answer
657 views

env.php in Docker containers with pipeline deployment

I wanna be able to deploy and run Magento 2 using Docker images I am following Magento 2.2+ pipeline deployment docs: https://devdocs.magento.com/guides/v2.4/config-guide/deployment/ https://devdocs....
Lubos Zapotocny's user avatar
0 votes
1 answer
42 views

Deployment does no create /js folder with main.js

During the process of updating my Magento2 website, the console commands fail to create my main.js file, and shows me this error static/frontend/website/default/pt_PT/js/main.js net::ERR_ABORTED 404 (...
Pedro Ferreira's user avatar
0 votes
1 answer
280 views

CLI command to switch off Redis cache

There is CLI command to set up Redis as backend for Magento cache: $ ./bin/magento setup:config:set --cache-backend=redis Does any CLI command exist to switch off Redis as cache backend for Magento?
Alex Gusev's user avatar
  • 2,019
0 votes
0 answers
27 views

Changing debug mode into magento 2.3 losses theme css content

My site was in production mode. i changed it to developer mode. i ran all the commands. Static content deploy command too. But site is looking weird now. Can you guys please suggest something. https://...
Nafsss's user avatar
  • 760
6 votes
3 answers
2k views

Zero downtime deployments

I'm using Magento 2.3.4 open source and I am looking into how I can achieve zero downtime The build commands I normally use are: php bin/magento maintenance:enable composer install --no-interaction ...
Goose84's user avatar
  • 2,611
1 vote
1 answer
2k views

How to setup Magento Cloud + Bitbucket?

I've set up Bitbucket Pipelines to use in different Magento Commerce versions but not Magento Cloud yet. I usually do like that in Magento Open Source or Magento Commerce: How to setup CI on Magento ...
Rafael Corrêa Gomes's user avatar
1 vote
1 answer
68 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.
Akash Killedar's user avatar
2 votes
2 answers
152 views

Css can't read content in new area code for theme deploy

Here is my scenario. I have create new area for my theme (Not adminhtml , frontend). Used Developer mode and no symlinks config in admin I have create new module simple for define new area theme ...
mrtuvn's user avatar
  • 3,273
0 votes
1 answer
247 views

Deployer.org - Recipe changes are not being applied on Magento deploying

I'm using this recipe to deploy Magento 2 with Deployer.org. It's not getting my changes. For example the writable_dirs are set this wait: set('writable_dirs', [ 'var', 'pub/static', '...
Alejandro Araujo's user avatar
1 vote
1 answer
1k views

How to setup same GIT repository for development, build and production

As stated in Magento Docs for Development System and in Magento Docs for Build and Production System (Quote from Build Server explanation): All Magento code is under source control in the same ...
Creepin's user avatar
  • 335
2 votes
3 answers
3k views

Attempting to pass access keys into composer create-project for automated install

I am writing a shell script in bash (rewriting) that migrates / deploys our magento2 marketplace. I started off by getting the latest release from github, but that makes it so i cannot use the admin-...
CarComp's user avatar
  • 1,246
0 votes
1 answer
668 views

Magento 2 variable @mobile-cart-padding is undefined (Porto Theme)

I Cloned Magento 2 project from GitHub without any error. After I configured env files with DB details. when I deploy the project getting variable @mobile-cart-padding is an undefined error. I am ...
Subu's user avatar
  • 31
0 votes
2 answers
1k views

Possible way to fix luma Layout

Encounter this issue (Layout are wrong ).What is the possible issue for this? Tried dicompile, clear cache and reindex.Still not working exception.log main.CRITICAL: Path "/var/www/html/var/...
Ed Tan's user avatar
  • 183
0 votes
1 answer
919 views

Cannot set Magento2 to Production Mode

I tried to put my website into Production mode. For this, I used the following command on SSH but it get stuck. php bin/magento deploy:mode:set production Please refer to the following screenshot.
kaizen's user avatar
  • 103
1 vote
1 answer
649 views

Magento Cloud Upload changes to master without re-deploy everything?

On Magento Cloud, we noticed that each time we upload a code change to the master branch, running something like: git push magento master It runs some process and commands, and it takes many ...
Eliacim DAVILA - CENSERE's user avatar
0 votes
2 answers
199 views

Magento 2: Deploy Production mode with fresh install

I am working with MAGE2.2.6. It is a fresh install. Before I opened magento for the first time. I changed from default to Production mode, in the etc.php file. I also cleared my var/cash and var/...
Starkemp315's user avatar
2 votes
1 answer
3k 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 ...
Shashank Bhatt's user avatar
2 votes
1 answer
780 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 ...
giani.sim's user avatar
  • 1,473
2 votes
1 answer
92 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?
BOES's user avatar
  • 210
0 votes
2 answers
145 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 ...
zekia's user avatar
  • 640
1 vote
2 answers
104 views

Magento 2 Production Mode Issue

Can we set developer to production mode on the local server? Magento 2.x Php 7.x
Masud Shaikh's user avatar
  • 1,189
1 vote
1 answer
1k 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/...
Asad Kaleem's user avatar
2 votes
3 answers
2k 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/...
Eugene Kapelko's user avatar
1 vote
1 answer
373 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 ...
Fredwak's user avatar
  • 21
2 votes
2 answers
1k 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 ...
Eugene Kapelko's user avatar
2 votes
2 answers
1k 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!
silberfuchz's user avatar
4 votes
2 answers
5k 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 ...
Arun SS's user avatar
  • 451
1 vote
1 answer
93 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 ...
Mehdi's user avatar
  • 878
0 votes
2 answers
1k 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/...
Banvari's user avatar
0 votes
1 answer
296 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....
Muckee's user avatar
  • 699
1 vote
4 answers
2k 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?
Krishnam's user avatar
1 vote
0 answers
1k 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 ...
HadlowJ's user avatar
  • 11
2 votes
2 answers
3k 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
anonymous's user avatar
  • 3,752
1 vote
0 answers
363 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 ...
user58220's user avatar
0 votes
1 answer
79 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 ...
Domas's user avatar
  • 115
0 votes
1 answer
312 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 ...
Anastasia's user avatar
2 votes
0 answers
82 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 ...
Slava Yurthev's user avatar
0 votes
1 answer
454 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 ...
Velu's user avatar
  • 1