Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets not loaded. #461

Closed
SchulzWill opened this issue Mar 10, 2020 · 4 comments
Closed

Assets not loaded. #461

SchulzWill opened this issue Mar 10, 2020 · 4 comments

Comments

@SchulzWill
Copy link

SchulzWill commented Mar 10, 2020

Q A
Bug report? [ ]
Feature request? [ ]
Support request? [Y]

Hello there,
I am using cocorico on Mac through MAMP.
Until now, my configurations point to 127.0.0.1:8888 as the MAMP default host config.

Right now, I am unable to see any assets.

The following configuration is being used:
use_assetic_controller: false
cocorico.assets_base_urls: 'http://localhost:8888'
router.request_context.host: 'localhost'
router.request_context.scheme: http
router.request_context.base_url: ''

Even using the configuration posted above, my assets keep sending me to cocorico.dev/

@SajjaadSherif
Copy link

If you are looking for a quick fix for testing then add cocorico.dev to your hosts file and associate it with your localhost IP (127.0.0.1). What have you set your environment to (--env=dev or --env=prod)? Have you added those configurations to both parameters.yml and parameters.yml.dist within the /Symfony/app/config folder?

@SchulzWill
Copy link
Author

SchulzWill commented Mar 11, 2020

After clearing my installation and remaking it I was able to reload almost every asset, except by the all.css from http://localhost:8888/css/compiled/all.css

@SajjaadSherif
Copy link

when you update all.css in /Symfony/web/css it saves to all_all_1.css in /Symfony/web/css/compiled. If the changes you are making to the all.css file is not reflecting on your install; Make sure you dump static assets using "php bin/console assetic:dump --env=dev" while in the /Symfony folder, and clear cache & reload the web page in your browser.

@SchulzWill
Copy link
Author

I did not change the css files yet, they were not visible.
I was able to solve it removing the entire folder and re-doing the installation process on my laptop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants