Questions tagged [static-content-deploy]
Refers to static view files deployment. Writing static files to the Magento file system when the Magento software is set for production mode.
179 questions
0
votes
0
answers
16
views
Why isn't the default behaviour for setup:static-content:deploy using " --jobs 1"?
I recently looked into how I could make my setup:static-content:deploy process faster. I then came across the --jobs flag.
This flag makes the process parallel, and even when you specify only --jobs 1,...
0
votes
0
answers
47
views
Magento 2: Unable to get content PageBuilder Issue during deploying
During deploy we get issues:
adminhtml/Magento/backend/en_US 2487/2698 =========================>-- 92% 6 secs
Compilation from source: .../public_html/vendor/magento/theme-...
0
votes
1
answer
65
views
Can't run magento CLI commands without Redis
I am attempting to setup magento 2 pipeline deploy
Trying to compile DI and deploy static assets inside a container but none of the ./bin/magento commands will run, not even ./bin/magento --help ...
0
votes
1
answer
111
views
.css and .js files only loading when refreshing page after deploy
Whenever I'm deploying updates on our Magento 2 live environment, I run into the issue that on first page load, the .min.css files and sometimes the .js/.min.js files aren't loading (the browser runs ...
0
votes
1
answer
63
views
LESS file changes not working
the LESS file changes is not shown on frontend , i tired removing cache and different files
rm -rf var/cache/* var/view_preprocessed/*
then upgrading and deploying
but when i deploy the website is ...
1
vote
2
answers
292
views
How and when should I use the Magento 2 commands bin/magento setup:upgrade, bin/magento setup:di:compile, and bin/magento static:content:deploy -f?
I'm new to Magento 2 and I'm trying to understand the purpose and appropriate usage of some important commands. Specifically, I would like to know more about the following commands:
bin/magento setup:...
0
votes
0
answers
145
views
Deployment script takes around 30 min on magento 2.4.5-p1. how to reduce the time?
When I run the deployment command on our production mode site, it takes around 30 mins to complete. How can I make it faster?
Magento Version: 2.4.5-p1
5
votes
2
answers
2k
views
Static-content deploy slow after upgrading
after upgrading M2 from 2.4.2 to 2.4.5-p1 the static content deployment increased significantly.
The time to deploy increases for every new theme/language.
Used to be ~5min total for all themes to ...
0
votes
2
answers
2k
views
Fatal error: Cannot declare class Product, because the name is already
This error pops up when I run php -dmemory_limit=-1 bin/magento s:d:c
File; parseResource.php
<?php
class parseResource
{
public $resourcePath = "";
...
1
vote
1
answer
109
views
Issue migration 2.4.1 to 2.4.4
I'm facing several issues in my migration process from 2.4.1 to 2.4.4.
On the backend, when I try to login :
If wrong credentials: error message; this is fine.
If proper credentials, then, the url ...
2
votes
2
answers
58
views
styles.css not found 404 after executing setup:static-content:deploy
I'm trying to setup the project locally and after executing php bin/magento setup:static-content:deploy -f es_ES only sass directory is showing up but no css directory.
As you can see it is trying to ...
2
votes
3
answers
1k
views
Magento 2.4.4: What is the theme that Magento admin uses?
I recently made a change to my setup:static-content:deploy command as php -d memory_limit=4G bin/magento setup:static-content:deploy -f --theme Perfectmakeupmirrors/argento-luxury-custom to narrow ...
8
votes
7
answers
9k
views
Static content deploy error after upgrading magento 2.4.3-p1 to 2.4.4
php ver 8.1
Error happened during deploy process: Deprecated Functionality:
pathinfo(): Passing null to parameter #1 ($path) of type string is
deprecated in
/vendor/magento/framework/View/Asset/...
0
votes
1
answer
50
views
Compilation error Magento 2.4.3
what kind of compilation error is this?
Can I share with you other info?
I have Magento 2.4.3
https://ibb.co/sVFd0Nq
1
vote
1
answer
2k
views
Magento 2.4.1 - Static content deployment needed in developer mode
I am in the middle of a situation regarding the static content deployment and I find it strange.
I built Magento 2 themes based on Luma/Blank or even not based on those. When I was working under the ...
0
votes
1
answer
74
views
Override vendor file issue in magento2
I am trying to override the below class file in my custom module.
Magento\Deploy\Service\DeployStaticContent.php
Vendor/Module/etc/di.xml
<?xml version="1.0" ?>
<config xmlns:xsi=&...
0
votes
1
answer
1k
views
Magento 2 Js file not updating
I have edited the Js file in my module and tried deleting the file in an appropriate location like pub/static/My_Theme/My_Modul/js/test.js
But still getting the same file when I checked in the source ...
0
votes
1
answer
385
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 ...
0
votes
0
answers
153
views
Rename loaded requireJS file after each change
I have a question about deploying JS files loaded using requirejs-config.js.
I have a third-party plugin that needs overrides. So, I built a new plugin and inside the requirejs-config.js file I added ...
0
votes
1
answer
386
views
No matching definition was found for `@family-name:'icons-blank-theme
We have upgraded Magento version from 2.3.4 to 2.4.2,
while we execute deploy command we are facing below errors :
frontend/Magento/louellabelle/en_GB 3349/3580 ==========================...
0
votes
1
answer
57
views
Problem with multiple themes deploy in Magento 2
When I execute CLI command: php bin/magento setup:static-content:deploy. It always has only 4 steps themes, but now I have multiple duplicate themes while running the command.
frontend/Magento/blank/...
0
votes
1
answer
980
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 ...
1
vote
2
answers
654
views
.phtml file changes won't show, even though my static files and cache are cleared
So this is driving me a little nuts,
I'm working on a child theme of Luma and the design requires me to modify some of the catalog blocks, so I've copied over a .phtml file into my theme folder.
The ...
0
votes
1
answer
61
views
Magento 2 static asset response code when static deployment is running
When you are generating static content and you view a link to an asset for example
https://domain/static/version1234/frontend/Vendor/Theme/en_GB/mage/translate.js
If you view the file before it's been ...
0
votes
1
answer
419
views
Magento js file 404 error after some working on project (tinycolor)
I use Magento 2.2.1 . After some working on project and adding modules, all things were right until I go to the category page. It gives me error with subject tinycolor.js 404 file not found on console ...
0
votes
1
answer
669
views
Static files are missing after deploying Magento 2 in production mode
I'm using "push to deploy" method to deploy Magento 2 app with GIT.
After pushing to master following commands are executed on the production server:
git checkout master && git pull ...
0
votes
1
answer
1k
views
Magento 2.4 getting wrong css & js path on frontend
I'm getting the wrong media, JS & CSS file path on the frontend and backend after installing Magento 2.4.2.
Please review the below URLs we are getting.
I've tried updating the value in the ...
0
votes
2
answers
497
views
Magento 2.4 : Frontend/Backend Not working
I am using below configuration :
Magento 2.4.x
PHP 7.4
Composer 2.0
Frontend and Backend is not working. All .htaccess files are there in required folder.
But still,I am getting below log in apache
...
0
votes
1
answer
1k
views
Magento 2 - Pub/Static files create everything EXCEPT mage folder with important js files (like mixins.js or common.js)
I am using Magento 2.4.1 CE. I am not sure what changed, but since about a week when I create my static files the front- and backend break because two folders including important files are missing (e....
1
vote
1
answer
1k
views
Update files when in production mode
When the Magento2 site is in production mode and I want to modify some html/phtml/php/js files how can I update the edited files while remaining in production mode?
For the moment I have done this:
$ ...
0
votes
2
answers
455
views
Issue when running deploy static content command - Magento 2
When running the php bin/magento setup:static-content:deploy command I am having an issue with the frontend of the site where it looks like it is loading the Magento/luma theme and ignoring all of my ...
0
votes
1
answer
1k
views
Magento 2 - Why do I get stupid "compilation from source" errors on setup:static-content:deploy?
If I execute php bin/magento setup:static-content:deploy then I get alot of errors like:
Compilation from source: /home/company/staging.company.de/app/design/frontend/company/fresh/web/css/source/...
0
votes
0
answers
198
views
Magento command line putty
I have Magento 2.3.
I have moved the website to another server but all command [php bin/magento setup:upgrade
, php bin/magento setup:static-content:deploy -f, and any other command
]
on command putty ...
0
votes
1
answer
957
views
How to resolve Exception of Admin User installation issue while Theme Updating
I'm getting error during executing site/themesetup (via browser).
The updation regarding modules happened properly & quickly, but it is encountering error While installing a new admin user(unsure ...
2
votes
1
answer
141
views
It is possible to deploy only one file using deploy command?
In production mode when I change the design of some particular block or page then I am only working on one or two files like js and CSS.
To apply that one change I need to deploy the whole theme.
Can ...
6
votes
1
answer
579
views
Magento 2.4 deploy command does not creating minify file when I am in production mode
Magento 2.4.0: The static content deployment command does not create minify file when I am in production mode.
Getting error on below file. It's not creating so Magento cannot read it.
pub/static/...
0
votes
1
answer
553
views
How to prevent from always static content deploy content on changing JS and CSS work in Magento 2?
How to prevent from static content deploy after changing in JS or CSS file in Magento 2.
After doing some little change changes are not loads in front end if doesn't deploy.
How to do that Any help is ...
0
votes
1
answer
336
views
Magento 2 - Compilation from source, errors during `php bin/magento setup:static-content:deploy`
I get this error when I execute php bin/magento setup:static-content:deploy:
Compilation from source: /app/design/frontend/company/fresh/web/css/source/lib/extend/amasty/mega-menu/header.less
variable ...
1
vote
2
answers
2k
views
Any Drawback on running setup:upgrade, di:compile, static deploy everytime code level edit on Magento 2
Is it ok to run the following set of commands by default everytime I make a code level edit (layout edits, module creation, extension update)
php bin/magento setup:upgrade
php bin/magento setup:di:...
5
votes
7
answers
22k
views
Magento 2.3: main.ERROR: Unable to resolve the source file issue
I am getting below error when I ran php bin/magento setup:static-content:deploy -f cmd.
frontend/Alothemes/digitalstore3/en_US 2494/2645 ==========================>- 94% 5 secs
...
0
votes
1
answer
357
views
Static content generation: problems with grunt exec and grunt less
I'm working on a Magento 2.3.4 website that has a custom theme, developed by a different party. I need to modify some .less files and I noticed something strange. grunt exec, that should publish the ...
0
votes
2
answers
236
views
css is not working in magento 2 cart page
I have issue in cart page of my website . Currently home page and product pages are loading correctly but the cart page have issue Css and js fies in the cart page is not working
Please help to ...
0
votes
1
answer
118
views
How to load an external file to load and execute our custom JS files on the Magento site?
seeking some advises. My Magento-2 project has 2 custom JS files that I would like replicated and loaded externally on the site. This arrangement is for our client to use them to add his own code ...
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
...
0
votes
1
answer
349
views
setup:staitic-content:deploy doesn't update JS in Magento 2
I'm running Magento 2 in production mode.
I made some changes in my module JS files.
I try to make the JS change reflecting on the live site, by using following command.
php bin/magento setup:...
1
vote
2
answers
305
views
Why do I still need to regenerate static content in developer mode?
I've noticed that in developer mode whenever I enable an extension, or a theme, I will have to regenerate the static content. Here's an example of such a case.
According to the magento 2 ...
1
vote
1
answer
6k
views
Magento 2 pub/static/_cache/merged files are not created
Magento version 2.1.9
Trying to deploy the website results in strange JS and CSS errors.
With the configuration of:
dev/js/merge_files = 0
dev/js/enable_js_bundling = 0
dev/js/minify_files = 0
dev/...
0
votes
1
answer
300
views
Magento 2 Static Content deploy requried?
I am a newbie in Magento2 I read some articles in which they mention like in Developer mode there is no need for Content deploy, it is only required in production mode.
but when I worked practically ...
0
votes
1
answer
232
views
Static content deploy in magneto 2 [closed]
why we use in general static content deploy command in Magento 2?
php bin/magento setup:static-content:deploy -f
1
vote
1
answer
362
views
Magento 2 static files not creating mage folder and mixins.js
After upgrading from Magento 2.2.2 to Magento 2.3.3. While generating static content with command "php bin/magento setup:static-content:deploy -f"
it updates all the files in pub/static folder ...