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.

Filter by
Sorted by
Tagged with
0
votes
1answer
36 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
0answers
21 views

magento cannot load static files JS & CSS

I just fresh installed the Magento2. I don't know why my page cannot load the CSS and JS files. I did check the files, they are all in the pub/static folder. I did check the version, it is correct. ...
0
votes
2answers
32 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
0answers
7 views

Magento compilations error after deploy - Theme Porto

my site with Magento 2 and Porto Theme. I have installed a new extension and after run the deploy command like as: php bin/magento setup:static-content:deploy Show these errors: Compilation from ...
0
votes
0answers
18 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....
0
votes
0answers
18 views

Magento 2.3.5-p giving a blank page on checkout (not white page the menu everything else appears)

This was in production mode. So I switched to developer mode. Then it worked. I could see the options to checkout. Then I did something stupid I guess. I decided to run these commands php bin/magento ...
0
votes
1answer
21 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
2answers
28 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
1answer
23 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
0answers
10 views

Magento 2 Storefront and admin panel empty

On my Magento 2.2.6 with Nginx php-fpm centos 7 storefront & admin panel shows an empty page with a message "CMS homepage content goes here." Applied these commands also sudo find var ...
0
votes
0answers
9 views

Magento 2.2.5 JS and font not loading 404 error

In my Magento 2.2.5 store there is JS and fonts 4040 error. I am using centos with lamp and webserver user and group name is daemon I have run below commands but still issue exist. alias mage="/...
0
votes
0answers
28 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
1answer
17 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
1answer
45 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 ...
3
votes
1answer
97 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
1answer
20 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
1answer
47 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
2answers
116 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:...
1
vote
2answers
3k 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
1answer
61 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
2answers
82 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
1answer
33 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 ...
0
votes
3answers
476 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
1answer
83 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:...
0
votes
2answers
52 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 ...
0
votes
1answer
2k 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
1answer
50 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
1answer
80 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
1answer
201 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 ...
0
votes
1answer
55 views

Modification to .phtml does not render

In content/page homepage I insert a widget from the porto theme: {{block class="Smartwave\Filterproducts\Block\Home\LatestList" name="latest_product" product_type="4" product_count="50" category_id="...
0
votes
1answer
33 views

skip default luma images generation during static content deployment in magento cloud

I have a requirement where I need to skip the images that were generated by the static-content: deploy in Magento. In my local and the test environments have --no-images option. But how can I ...
0
votes
0answers
122 views

Magento2 2.3.3 not creating symlinks for static files anymore

After a lot of searching on google, I hope someone can help me out. Magento2 version 2.3.3 is running on nginx with the sample config from Magento. PHP 7.1.33 is running via fcgi. The developer mode ...
1
vote
2answers
132 views

Magento 2 - I am facing this every time I run upgrade and deploy command after applying changes

Each time I deploy some changes and run, upgrade compile deploy reindex cache clean commands I face these issues? Anyone ?? I have deployed child theme and after that, I have run these commands
-1
votes
1answer
40 views

Error while running static deploy command in magento 2

I am getting the error again & again, though I have removed/var/pub & pub/static/frontend Error while running static deploy command in Magento
1
vote
1answer
1k views

static content deploy command autometically killed

I am running command setup:static-content:deploy -f its running for while, but after sometime it got killed in magento2.3.2. Please let me know the exact issue for this.
0
votes
0answers
88 views

An error has happened during application run. See exception log for details in magento2.3.3

I had run "setup:static-content:deploy -f en_GB" command, my website shows "An error has happened during application run. See exception log for details." i checked in my log file, CRITICAL: ...
1
vote
2answers
512 views

Module not generated in pub/ folder, Magento 2.3.3

Hello! I have Magento version 2.3.3. I run: bin/magento setup:upgrade bin/magento setup:di:compile bin/magento bin/magento setup:static-content:deploy -f And permissions for folders: But after ...
2
votes
0answers
122 views

Magento 2 can't deploy : full red error

(Using putty). I can't deploy my magento 2 anymore... Tried chmod, tried setup upgrade.. Any idea or tips will be much appreciated. #0 /var/www/clients/client0/web6/web/boutique/vendor/magento/...
0
votes
1answer
1k views

Running a script inside a docker container using shell script from host

I am new to Docker technology,I am trying to create a shell script on my host to clear caches and to deploy my static content in Magento 2 inside my apach containe. to access to my apach container i ...
1
vote
1answer
42 views

js files are automatically deleted - adminhtml/web/js/components/use-parent-settings

In my M 2.2.6 I can not enter the Category section of dashboard, the spining is turn around. When I check the console, some of JS has 404 error In - adminhtml/web/js/components/use-parent-...
0
votes
1answer
164 views

Magento 2 - Exception: File can't be read in Magento static content deploy

Please tell me where is the problem. I used bin/magento setup:upgrade and bin/magento setup:static-content:deploy en_GB en_US -f
0
votes
0answers
647 views

getting errors when running setup:static-content:deploy -f magento 2.2.8

I am trying install a new theme in magento 2.2.8 and when i run in terminal php bin/magento setup:static-content:deploy -f This is the error that appear: #0 /var/www/clients/client19/web982/web/...
0
votes
2answers
442 views

Static content deploy issue for Magento 2.3.2

Hello! After upgrading Magento 2.1.8 to Magento 2.3.2, I get an error when run command: > php setup:static-content:deploy or > php setup:static-content:deploy en_US -f Text of my Error: ...
2
votes
1answer
197 views

Variable @button__shadow-active is undefined while running deploy static content in Magento 2

I am getting this error whenever running php bin/magento setup:static-content:deploy. It showing variable @button__shadow-active is undefined in file en_US/css/source/_extends.less in _extends.less. ...
0
votes
3answers
583 views

Don't work bin/magento setup:static-content:deploy after upgrade Magento to 2.3.2

Hello! When i run command bin/magento setup:static-content:deploy i give errors: And my error: useful.css): failed to open stream: No such file or directory How to fix it? Thanks)
1
vote
0answers
58 views

Static Content deploy parallel jobs is not working in Docker

When using --jobs=4 or -j=4 with setup:static-content:deploy command its working on my local machine and it build the assets in parallel but when using this command inside a docker container with php:...
0
votes
1answer
50 views

Static files not getting generated magento 2.3

I ran command php bin/magento setup:static-content:deploy -f and i am getting this error https://prnt.sc/ot0gpp Please help what to do, my static files are not getting generated because of which my ...
0
votes
3answers
184 views

Is there any way to reflect the css,js changes without running static content deploy in Magento 2?

Is there any other method other than running deploy command to get new changes in the files in Magento 2?
0
votes
1answer
59 views

Could not read config file while deploying static content in Magento 2?

It shows error in FileResolver file.
0
votes
1answer
288 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 ...