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

FIX /static/ alias for Apache config #2421

Closed
wants to merge 1 commit into from
Closed

FIX /static/ alias for Apache config #2421

wants to merge 1 commit into from

Conversation

sbancal
Copy link

@sbancal sbancal commented Feb 1, 2019

/static/ alias in Apache config doesn't match with other configs (like nginx) ... and doesn't match the files. Fixing it.

/static/ alias in Apache config doesn't match with other configs (like nginx) ... and doesn't match the files. Fixing it.
@deniszh
Copy link
Member

deniszh commented Feb 1, 2019

Sorry, @sbancal , but that's wrong. Not sure about which Nginx config do you mean, but /opt/graphite/static/ is right path, jou just need to run collectstatic Django command, as described in documentation - see STATIC_ROOT in https://graphite.readthedocs.io/en/latest/config-local-settings.html

@piotr1212
Copy link
Member

In my attempt to make installation easier, I'm trying to get rid of the whole collectstatic mess and serve static files with whitenoise from the application as default. Then you also won't need to configure the webserver for serving static files, which makes it even easier.

We'll still have an option to serve static files from a webserver, but using whitnoise as default should be good enough for most installations, especially since I expect most users running grafana by now and not using graphite dashboards.

#2409

@sbancal
Copy link
Author

sbancal commented Feb 1, 2019

@deniszh
You're right, running collectstatic creates that missing folder. I was running all side of the doc ... but didn't see that one ...

I was talking of the lines 79 and 257 in that same file.

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

Successfully merging this pull request may close these issues.

3 participants