Magento2 on docker css and js don't loadFailed to load css and js script after successful installationMagento 2 have Any Port Forwarding restrictionMagento 2 setup errorDeveloper mode issueMagento 2 with nginx throwing 404 error on setupPermission Denied (Windows) - M2Devbox Installation IssueCSS not loading on page within Magento 2 pageError 500 after magento migrationMagento2 Error 404 Admin after installMagento2 and Docker-Compose is incredible slow on Linux

How do hiring committees for research positions view getting "scooped"?

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

Comment Box for Substitution Method of Integrals

A Ri-diddley-iley Riddle

gerund and noun applications

Help rendering a complicated sum/product formula

Word for flower that blooms and wilts in one day

Should I be concerned about student access to a test bank?

Suggestions on how to spend Shaabath (constructively) alone

Bash - pair each line of file

In Aliens, how many people were on LV-426 before the Marines arrived​?

Can other pieces capture a threatening piece and prevent a checkmate?

Can a wizard cast a spell during their first turn of combat if they initiated combat by releasing a readied spell?

Do native speakers use "ultima" and "proxima" frequently in spoken English?

Why didn't Héctor fade away after this character died in the movie Coco?

Recruiter wants very extensive technical details about all of my previous work

How does 取材で訪れた integrate into this sentence?

Does the attack bonus from a Masterwork weapon stack with the attack bonus from Masterwork ammunition?

두음법칙 - When did North and South diverge in pronunciation of initial ㄹ?

If "dar" means "to give", what does "daros" mean?

Have the tides ever turned twice on any open problem?

Am I eligible for the Eurail Youth pass? I am 27.5 years old

Is it insecure to send a password in a `curl` command?

What is the term when voters “dishonestly” choose something that they do not want to choose?



Magento2 on docker css and js don't load


Failed to load css and js script after successful installationMagento 2 have Any Port Forwarding restrictionMagento 2 setup errorDeveloper mode issueMagento 2 with nginx throwing 404 error on setupPermission Denied (Windows) - M2Devbox Installation IssueCSS not loading on page within Magento 2 pageError 500 after magento migrationMagento2 Error 404 Admin after installMagento2 and Docker-Compose is incredible slow on Linux













0















I installed magento using composer:



composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition


and load sample data.
It works pretty fine on localhost.



I created dockerfile and docker-compose for magento:
Dockerfile:



FROM ubuntu:latest

MAINTAINER xxxx

RUN apt-get -qqy update

RUN apt-get -qqy install apache2
php
mysql-client
libapache2-mod-php
php-pear
php-mcrypt
php-gd
php-curl
php-mysql
php-dom
php-xml
php-xsl
php-mbstring
php-intl
php-zip
php-cli
php-cgi
curl
git
nano
vim
htop
RUN apt-get -qqy install nodejs npm
RUN apt-get -qqy install php-fpm

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

ADD ./20-mcrypt.ini /etc/php/7.0/cli/conf.d/20-mcrypt.ini
ADD ./20-mcrypt.ini /etc/php/7.0/apache2/conf.d/20-mcrypt.ini


RUN a2enmod rewrite

COPY ./magento2.conf /etc/apache2/sites-available/magento2.conf
#RUN rm -f /etc/apache2/sites-enabled/000-default.conf

#COPY xdebug-enabler.ini /etc/php/7.0/mods-available/

RUN php -r "echo ini_get('memory_limit').PHP_EOL;"

COPY ./apache2.conf /etc/apache2/apache2.conf

RUN a2enmod php7.0
RUN service apache2 restart


WORKDIR /var/www/html

EXPOSE 9001
EXPOSE 80
EXPOSE 443


magento2.conf:



<VirtualHost *:80>
DocumentRoot /var/www/html
ServerName magento2test.localhost
<Directory /var/www/html>
DirectoryIndex index.php index.html
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>


apache2.conf:



#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:$APACHE_LOCK_DIR default

PidFile $APACHE_PID_FILE

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 5


User $APACHE_RUN_USER
HostnameLookups Off

ErrorLog $APACHE_LOG_DIR/error.log
LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>

<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>

<Directory /var/www/>
Options +Indexes +FollowSymLinks +Multiviews
allowOverride all
Require all granted
</Directory>

<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

AccessFileName .htaccess

<FilesMatch "^.ht">
Require all denied
</FilesMatch>


LogFormat "%v:%p %h %l %u %t "%r" %>s %O "%Refereri" "%User-Agenti"" vhost_combined
LogFormat "%h %l %u %t "%r" %>s %O "%Refereri" "%User-Agenti"" combined
LogFormat "%h %l %u %t "%r" %>s %O" common
LogFormat "%Refereri -> %U" referer
LogFormat "%User-agenti" agent

IncludeOptional conf-enabled/*.conf

IncludeOptional sites-enabled/*.conf


and finaly docker-compose:



mageweb:
build: docker-files/apache-xdebug
command: rm -f /var/run/apache2/apache2.pid
command: apachectl -D FOREGROUND
ports:
- "8081:8081"
- "80:80"
- "9001:9001"
- "443:443"
volumes:
- ./project/:/var/www/html/


Now it is only one image cause im using remote mysql and I will add more images later.



Anyway I'm able to build and up docker.
I'm able to install and setup magento.
Of course I tried flush all cache, and done all of those comands (using docker exec -it container_name bash:



php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento setup:upgrade --keep-generated
php bin/magento module:enable --all
php bin/magento setup:di:compile


But style.css and some js are not loading property:
enter image description here



system.log:



[2016-11-17 07:27:39] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_2ae0e2a835d549823c9720ea0833000d3 and handles default, catalog_category_view, catalog_category_view_type_default, catalog_category_view_type_default_without_children, catalog_category_view_id_39: Please correct the XML data and try again. [] []
[2016-11-17 07:27:39] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_2a7ccd8094436548b564a588f6303121c and handles 2columns-left: Please correct the XML data and try again. [] []
[2016-11-17 07:27:40] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_26f1b068ec7ccf4878f9284dd1137afd1 and handles catalog_product_prices: Please correct the XML data and try again. [] []


Do You have any ideas hot can I fix it?










share|improve this question
















bumped to the homepage by Community 45 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Also I cant appy permisions for project on run container. It won' t apply. May it be because of Windows?

    – Konrad Siamro
    Nov 21 '16 at 7:29















0















I installed magento using composer:



composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition


and load sample data.
It works pretty fine on localhost.



I created dockerfile and docker-compose for magento:
Dockerfile:



FROM ubuntu:latest

MAINTAINER xxxx

RUN apt-get -qqy update

RUN apt-get -qqy install apache2
php
mysql-client
libapache2-mod-php
php-pear
php-mcrypt
php-gd
php-curl
php-mysql
php-dom
php-xml
php-xsl
php-mbstring
php-intl
php-zip
php-cli
php-cgi
curl
git
nano
vim
htop
RUN apt-get -qqy install nodejs npm
RUN apt-get -qqy install php-fpm

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

ADD ./20-mcrypt.ini /etc/php/7.0/cli/conf.d/20-mcrypt.ini
ADD ./20-mcrypt.ini /etc/php/7.0/apache2/conf.d/20-mcrypt.ini


RUN a2enmod rewrite

COPY ./magento2.conf /etc/apache2/sites-available/magento2.conf
#RUN rm -f /etc/apache2/sites-enabled/000-default.conf

#COPY xdebug-enabler.ini /etc/php/7.0/mods-available/

RUN php -r "echo ini_get('memory_limit').PHP_EOL;"

COPY ./apache2.conf /etc/apache2/apache2.conf

RUN a2enmod php7.0
RUN service apache2 restart


WORKDIR /var/www/html

EXPOSE 9001
EXPOSE 80
EXPOSE 443


magento2.conf:



<VirtualHost *:80>
DocumentRoot /var/www/html
ServerName magento2test.localhost
<Directory /var/www/html>
DirectoryIndex index.php index.html
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>


apache2.conf:



#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:$APACHE_LOCK_DIR default

PidFile $APACHE_PID_FILE

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 5


User $APACHE_RUN_USER
HostnameLookups Off

ErrorLog $APACHE_LOG_DIR/error.log
LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>

<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>

<Directory /var/www/>
Options +Indexes +FollowSymLinks +Multiviews
allowOverride all
Require all granted
</Directory>

<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

AccessFileName .htaccess

<FilesMatch "^.ht">
Require all denied
</FilesMatch>


LogFormat "%v:%p %h %l %u %t "%r" %>s %O "%Refereri" "%User-Agenti"" vhost_combined
LogFormat "%h %l %u %t "%r" %>s %O "%Refereri" "%User-Agenti"" combined
LogFormat "%h %l %u %t "%r" %>s %O" common
LogFormat "%Refereri -> %U" referer
LogFormat "%User-agenti" agent

IncludeOptional conf-enabled/*.conf

IncludeOptional sites-enabled/*.conf


and finaly docker-compose:



mageweb:
build: docker-files/apache-xdebug
command: rm -f /var/run/apache2/apache2.pid
command: apachectl -D FOREGROUND
ports:
- "8081:8081"
- "80:80"
- "9001:9001"
- "443:443"
volumes:
- ./project/:/var/www/html/


Now it is only one image cause im using remote mysql and I will add more images later.



Anyway I'm able to build and up docker.
I'm able to install and setup magento.
Of course I tried flush all cache, and done all of those comands (using docker exec -it container_name bash:



php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento setup:upgrade --keep-generated
php bin/magento module:enable --all
php bin/magento setup:di:compile


But style.css and some js are not loading property:
enter image description here



system.log:



[2016-11-17 07:27:39] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_2ae0e2a835d549823c9720ea0833000d3 and handles default, catalog_category_view, catalog_category_view_type_default, catalog_category_view_type_default_without_children, catalog_category_view_id_39: Please correct the XML data and try again. [] []
[2016-11-17 07:27:39] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_2a7ccd8094436548b564a588f6303121c and handles 2columns-left: Please correct the XML data and try again. [] []
[2016-11-17 07:27:40] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_26f1b068ec7ccf4878f9284dd1137afd1 and handles catalog_product_prices: Please correct the XML data and try again. [] []


Do You have any ideas hot can I fix it?










share|improve this question
















bumped to the homepage by Community 45 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Also I cant appy permisions for project on run container. It won' t apply. May it be because of Windows?

    – Konrad Siamro
    Nov 21 '16 at 7:29













0












0








0








I installed magento using composer:



composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition


and load sample data.
It works pretty fine on localhost.



I created dockerfile and docker-compose for magento:
Dockerfile:



FROM ubuntu:latest

MAINTAINER xxxx

RUN apt-get -qqy update

RUN apt-get -qqy install apache2
php
mysql-client
libapache2-mod-php
php-pear
php-mcrypt
php-gd
php-curl
php-mysql
php-dom
php-xml
php-xsl
php-mbstring
php-intl
php-zip
php-cli
php-cgi
curl
git
nano
vim
htop
RUN apt-get -qqy install nodejs npm
RUN apt-get -qqy install php-fpm

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

ADD ./20-mcrypt.ini /etc/php/7.0/cli/conf.d/20-mcrypt.ini
ADD ./20-mcrypt.ini /etc/php/7.0/apache2/conf.d/20-mcrypt.ini


RUN a2enmod rewrite

COPY ./magento2.conf /etc/apache2/sites-available/magento2.conf
#RUN rm -f /etc/apache2/sites-enabled/000-default.conf

#COPY xdebug-enabler.ini /etc/php/7.0/mods-available/

RUN php -r "echo ini_get('memory_limit').PHP_EOL;"

COPY ./apache2.conf /etc/apache2/apache2.conf

RUN a2enmod php7.0
RUN service apache2 restart


WORKDIR /var/www/html

EXPOSE 9001
EXPOSE 80
EXPOSE 443


magento2.conf:



<VirtualHost *:80>
DocumentRoot /var/www/html
ServerName magento2test.localhost
<Directory /var/www/html>
DirectoryIndex index.php index.html
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>


apache2.conf:



#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:$APACHE_LOCK_DIR default

PidFile $APACHE_PID_FILE

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 5


User $APACHE_RUN_USER
HostnameLookups Off

ErrorLog $APACHE_LOG_DIR/error.log
LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>

<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>

<Directory /var/www/>
Options +Indexes +FollowSymLinks +Multiviews
allowOverride all
Require all granted
</Directory>

<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

AccessFileName .htaccess

<FilesMatch "^.ht">
Require all denied
</FilesMatch>


LogFormat "%v:%p %h %l %u %t "%r" %>s %O "%Refereri" "%User-Agenti"" vhost_combined
LogFormat "%h %l %u %t "%r" %>s %O "%Refereri" "%User-Agenti"" combined
LogFormat "%h %l %u %t "%r" %>s %O" common
LogFormat "%Refereri -> %U" referer
LogFormat "%User-agenti" agent

IncludeOptional conf-enabled/*.conf

IncludeOptional sites-enabled/*.conf


and finaly docker-compose:



mageweb:
build: docker-files/apache-xdebug
command: rm -f /var/run/apache2/apache2.pid
command: apachectl -D FOREGROUND
ports:
- "8081:8081"
- "80:80"
- "9001:9001"
- "443:443"
volumes:
- ./project/:/var/www/html/


Now it is only one image cause im using remote mysql and I will add more images later.



Anyway I'm able to build and up docker.
I'm able to install and setup magento.
Of course I tried flush all cache, and done all of those comands (using docker exec -it container_name bash:



php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento setup:upgrade --keep-generated
php bin/magento module:enable --all
php bin/magento setup:di:compile


But style.css and some js are not loading property:
enter image description here



system.log:



[2016-11-17 07:27:39] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_2ae0e2a835d549823c9720ea0833000d3 and handles default, catalog_category_view, catalog_category_view_type_default, catalog_category_view_type_default_without_children, catalog_category_view_id_39: Please correct the XML data and try again. [] []
[2016-11-17 07:27:39] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_2a7ccd8094436548b564a588f6303121c and handles 2columns-left: Please correct the XML data and try again. [] []
[2016-11-17 07:27:40] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_26f1b068ec7ccf4878f9284dd1137afd1 and handles catalog_product_prices: Please correct the XML data and try again. [] []


Do You have any ideas hot can I fix it?










share|improve this question
















I installed magento using composer:



composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition


and load sample data.
It works pretty fine on localhost.



I created dockerfile and docker-compose for magento:
Dockerfile:



FROM ubuntu:latest

MAINTAINER xxxx

RUN apt-get -qqy update

RUN apt-get -qqy install apache2
php
mysql-client
libapache2-mod-php
php-pear
php-mcrypt
php-gd
php-curl
php-mysql
php-dom
php-xml
php-xsl
php-mbstring
php-intl
php-zip
php-cli
php-cgi
curl
git
nano
vim
htop
RUN apt-get -qqy install nodejs npm
RUN apt-get -qqy install php-fpm

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

ADD ./20-mcrypt.ini /etc/php/7.0/cli/conf.d/20-mcrypt.ini
ADD ./20-mcrypt.ini /etc/php/7.0/apache2/conf.d/20-mcrypt.ini


RUN a2enmod rewrite

COPY ./magento2.conf /etc/apache2/sites-available/magento2.conf
#RUN rm -f /etc/apache2/sites-enabled/000-default.conf

#COPY xdebug-enabler.ini /etc/php/7.0/mods-available/

RUN php -r "echo ini_get('memory_limit').PHP_EOL;"

COPY ./apache2.conf /etc/apache2/apache2.conf

RUN a2enmod php7.0
RUN service apache2 restart


WORKDIR /var/www/html

EXPOSE 9001
EXPOSE 80
EXPOSE 443


magento2.conf:



<VirtualHost *:80>
DocumentRoot /var/www/html
ServerName magento2test.localhost
<Directory /var/www/html>
DirectoryIndex index.php index.html
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>


apache2.conf:



#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:$APACHE_LOCK_DIR default

PidFile $APACHE_PID_FILE

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 5


User $APACHE_RUN_USER
HostnameLookups Off

ErrorLog $APACHE_LOG_DIR/error.log
LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>

<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>

<Directory /var/www/>
Options +Indexes +FollowSymLinks +Multiviews
allowOverride all
Require all granted
</Directory>

<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

AccessFileName .htaccess

<FilesMatch "^.ht">
Require all denied
</FilesMatch>


LogFormat "%v:%p %h %l %u %t "%r" %>s %O "%Refereri" "%User-Agenti"" vhost_combined
LogFormat "%h %l %u %t "%r" %>s %O "%Refereri" "%User-Agenti"" combined
LogFormat "%h %l %u %t "%r" %>s %O" common
LogFormat "%Refereri -> %U" referer
LogFormat "%User-agenti" agent

IncludeOptional conf-enabled/*.conf

IncludeOptional sites-enabled/*.conf


and finaly docker-compose:



mageweb:
build: docker-files/apache-xdebug
command: rm -f /var/run/apache2/apache2.pid
command: apachectl -D FOREGROUND
ports:
- "8081:8081"
- "80:80"
- "9001:9001"
- "443:443"
volumes:
- ./project/:/var/www/html/


Now it is only one image cause im using remote mysql and I will add more images later.



Anyway I'm able to build and up docker.
I'm able to install and setup magento.
Of course I tried flush all cache, and done all of those comands (using docker exec -it container_name bash:



php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento setup:upgrade --keep-generated
php bin/magento module:enable --all
php bin/magento setup:di:compile


But style.css and some js are not loading property:
enter image description here



system.log:



[2016-11-17 07:27:39] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_2ae0e2a835d549823c9720ea0833000d3 and handles default, catalog_category_view, catalog_category_view_type_default, catalog_category_view_type_default_without_children, catalog_category_view_id_39: Please correct the XML data and try again. [] []
[2016-11-17 07:27:39] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_2a7ccd8094436548b564a588f6303121c and handles 2columns-left: Please correct the XML data and try again. [] []
[2016-11-17 07:27:40] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_26f1b068ec7ccf4878f9284dd1137afd1 and handles catalog_product_prices: Please correct the XML data and try again. [] []


Do You have any ideas hot can I fix it?







magento2 css docker






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 21 '17 at 13:14









Teja Bhagavan Kollepara

3,00641949




3,00641949










asked Nov 18 '16 at 13:58









Konrad SiamroKonrad Siamro

931622




931622





bumped to the homepage by Community 45 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 45 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • Also I cant appy permisions for project on run container. It won' t apply. May it be because of Windows?

    – Konrad Siamro
    Nov 21 '16 at 7:29

















  • Also I cant appy permisions for project on run container. It won' t apply. May it be because of Windows?

    – Konrad Siamro
    Nov 21 '16 at 7:29
















Also I cant appy permisions for project on run container. It won' t apply. May it be because of Windows?

– Konrad Siamro
Nov 21 '16 at 7:29





Also I cant appy permisions for project on run container. It won' t apply. May it be because of Windows?

– Konrad Siamro
Nov 21 '16 at 7:29










1 Answer
1






active

oldest

votes


















0














Run these commands below to enable de developer mode, clean cache and all the routine process, these commands resolved this issue here and other 90% of the cases.



alias mage="php -d memory_limit=-1 -f bin/magento"
mage deploy:mode:set developer
chmod -R 777 pub/static/ var/ pub/media/ &&
rm -rf var/view_preprocessed/ var/cache/ var/page_cache/ var/tmp/ var/generation/ pub/static/frontend/ ;
mage cache:disable &&
mage cache:clean &
mage cache:flush &
mage indexer:reindex &
mage setup:upgrade &&
mage setup:static-content:deploy ; mage setup:static-content:deploy -f;
mage setup:db-data:upgrade &&
mage dev:source-theme:deploy &&
chmod -R 777 pub/static/ pub/media/ var/





share|improve this answer























  • Hey, thanks for answer but it didn't help. Solution for me was fix docker file a bit. Ill upload it later

    – Konrad Siamro
    Apr 10 '17 at 9:00











  • what was your fix? same issue here..

    – Andrew
    Nov 22 '17 at 17:25










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f146466%2fmagento2-on-docker-css-and-js-dont-load%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Run these commands below to enable de developer mode, clean cache and all the routine process, these commands resolved this issue here and other 90% of the cases.



alias mage="php -d memory_limit=-1 -f bin/magento"
mage deploy:mode:set developer
chmod -R 777 pub/static/ var/ pub/media/ &&
rm -rf var/view_preprocessed/ var/cache/ var/page_cache/ var/tmp/ var/generation/ pub/static/frontend/ ;
mage cache:disable &&
mage cache:clean &
mage cache:flush &
mage indexer:reindex &
mage setup:upgrade &&
mage setup:static-content:deploy ; mage setup:static-content:deploy -f;
mage setup:db-data:upgrade &&
mage dev:source-theme:deploy &&
chmod -R 777 pub/static/ pub/media/ var/





share|improve this answer























  • Hey, thanks for answer but it didn't help. Solution for me was fix docker file a bit. Ill upload it later

    – Konrad Siamro
    Apr 10 '17 at 9:00











  • what was your fix? same issue here..

    – Andrew
    Nov 22 '17 at 17:25















0














Run these commands below to enable de developer mode, clean cache and all the routine process, these commands resolved this issue here and other 90% of the cases.



alias mage="php -d memory_limit=-1 -f bin/magento"
mage deploy:mode:set developer
chmod -R 777 pub/static/ var/ pub/media/ &&
rm -rf var/view_preprocessed/ var/cache/ var/page_cache/ var/tmp/ var/generation/ pub/static/frontend/ ;
mage cache:disable &&
mage cache:clean &
mage cache:flush &
mage indexer:reindex &
mage setup:upgrade &&
mage setup:static-content:deploy ; mage setup:static-content:deploy -f;
mage setup:db-data:upgrade &&
mage dev:source-theme:deploy &&
chmod -R 777 pub/static/ pub/media/ var/





share|improve this answer























  • Hey, thanks for answer but it didn't help. Solution for me was fix docker file a bit. Ill upload it later

    – Konrad Siamro
    Apr 10 '17 at 9:00











  • what was your fix? same issue here..

    – Andrew
    Nov 22 '17 at 17:25













0












0








0







Run these commands below to enable de developer mode, clean cache and all the routine process, these commands resolved this issue here and other 90% of the cases.



alias mage="php -d memory_limit=-1 -f bin/magento"
mage deploy:mode:set developer
chmod -R 777 pub/static/ var/ pub/media/ &&
rm -rf var/view_preprocessed/ var/cache/ var/page_cache/ var/tmp/ var/generation/ pub/static/frontend/ ;
mage cache:disable &&
mage cache:clean &
mage cache:flush &
mage indexer:reindex &
mage setup:upgrade &&
mage setup:static-content:deploy ; mage setup:static-content:deploy -f;
mage setup:db-data:upgrade &&
mage dev:source-theme:deploy &&
chmod -R 777 pub/static/ pub/media/ var/





share|improve this answer













Run these commands below to enable de developer mode, clean cache and all the routine process, these commands resolved this issue here and other 90% of the cases.



alias mage="php -d memory_limit=-1 -f bin/magento"
mage deploy:mode:set developer
chmod -R 777 pub/static/ var/ pub/media/ &&
rm -rf var/view_preprocessed/ var/cache/ var/page_cache/ var/tmp/ var/generation/ pub/static/frontend/ ;
mage cache:disable &&
mage cache:clean &
mage cache:flush &
mage indexer:reindex &
mage setup:upgrade &&
mage setup:static-content:deploy ; mage setup:static-content:deploy -f;
mage setup:db-data:upgrade &&
mage dev:source-theme:deploy &&
chmod -R 777 pub/static/ pub/media/ var/






share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 8 '17 at 5:31









Rafael Corrêa GomesRafael Corrêa Gomes

4,59223265




4,59223265












  • Hey, thanks for answer but it didn't help. Solution for me was fix docker file a bit. Ill upload it later

    – Konrad Siamro
    Apr 10 '17 at 9:00











  • what was your fix? same issue here..

    – Andrew
    Nov 22 '17 at 17:25

















  • Hey, thanks for answer but it didn't help. Solution for me was fix docker file a bit. Ill upload it later

    – Konrad Siamro
    Apr 10 '17 at 9:00











  • what was your fix? same issue here..

    – Andrew
    Nov 22 '17 at 17:25
















Hey, thanks for answer but it didn't help. Solution for me was fix docker file a bit. Ill upload it later

– Konrad Siamro
Apr 10 '17 at 9:00





Hey, thanks for answer but it didn't help. Solution for me was fix docker file a bit. Ill upload it later

– Konrad Siamro
Apr 10 '17 at 9:00













what was your fix? same issue here..

– Andrew
Nov 22 '17 at 17:25





what was your fix? same issue here..

– Andrew
Nov 22 '17 at 17:25

















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f146466%2fmagento2-on-docker-css-and-js-dont-load%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Disable / Remove link to Product Items in Cart Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How can I limit products that can be bought / added to cart?Remove item from cartHide “Add to Cart” button if specific products are already in cart“Prettifying” the custom options in cart pageCreate link in cart sidebar to view all added items After limit reachedLink products together in checkout/cartHow to Get product from cart and add it againHide action-edit on cart page if simple productRemoving Cart items - ObserverRemove wishlist items when added to cart

Helsingin valtaus Sisällysluettelo Taustaa | Yleistä sotatoimista | Osapuolet | Taistelut Helsingin ympäristössä | Punaisten antautumissuunnitelma | Taistelujen kulku Helsingissä | Valtauksen jälkeen | Tappiot | Muistaminen | Kirjallisuutta | Lähteet | Aiheesta muualla | NavigointivalikkoTeoksen verkkoversioTeoksen verkkoversioGoogle BooksSisällissota Helsingissä päättyi tasan 95 vuotta sittenSaksalaisten ylivoima jyräsi punaisen HelsinginSuomalaiset kuvaavat sotien jälkiä kaupungeissa – katso kuvat ja tarinat tutuilta kulmiltaHelsingin valtaus 90 vuotta sittenSaksalaiset valtasivat HelsinginHyökkäys HelsinkiinHelsingin valtaus 12.–13.4. 1918Saksalaiset käyttivät ihmiskilpiä Helsingin valtauksessa 1918Teoksen verkkoversioTeoksen verkkoversioSaksalaiset hyökkäävät Etelä-SuomeenTaistelut LeppävaarassaSotilaat ja taistelutLeppävaara 1918 huhtikuussa. KapinatarinaHelsingin taistelut 1918Saksalaisten voitonparaati HelsingissäHelsingin valtausta juhlittiinSaksalaisten Helsinki vuonna 1918Helsingin taistelussa kaatuneet valkokaartilaisetHelsinkiin haudatut taisteluissa kaatuneet punaiset12.4.1918 Helsingin valtauksessa saksalaiset apujoukot vapauttavat kaupunginVapaussodan muistomerkkejä Helsingissä ja pääkaupunkiseudullaCrescendo / Vuoden 1918 Kansalaissodan uhrien muistomerkkim

Adjektiivitarina Tarinan tekeminen | Esimerkki: ennen | Esimerkki: jälkeen | Navigointivalikko