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

Warmup command completes successfully, but doesn't produce any files. #6

Open
HarryFrancis opened this issue Jan 15, 2020 · 1 comment

Comments

@HarryFrancis
Copy link

HarryFrancis commented Jan 15, 2020

Hello :)

I have setup this plugin on both my local and staging server, but I'm running into problems when running the super_static_cache:warmup command.

$ php please super_static_cache:warmup
Warming up your static cache...
http://localhost/
http://localhost/about
http://localhost/blog
http://localhost/gallery
http://localhost/things
http://localhost/contact
[✓] The static cache has been generated!

I then go to the site root and can't find any files, could it be related to it looking for 'http://localhost/gallery' when that isn't the site URL? If so, how can I update this?

Thanks, Harry.

@wanze
Copy link
Owner

wanze commented Jan 19, 2020

Hi @HarryFrancis

Can you add the full domain in site/settings/system.yaml under locales.<YOUR_LOCALE>.url ?
The problem is that Statamic cannot resolve the HTTP host in the context of the command line.

The addon should probably include a setting to set the base url manually.

Cheers

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