Skip to content
Grav 2.0 is officially stable. Read the announcement →
Themes & Styling

Custom CSS not rendering for GRAV site deployed through Heroku

first-time

Started by Shreyas Deshpande 6 years ago · 4 replies · 764 views
6 years ago

I am not really a coder. Just followed all the instructions and set up a grav site
and deployed it inside a heroku app, using git deployment method.
The site is here
shreyasdeshpande.com

For some reason the custom css is not rendering.
It renders when I run the app from heroku using the open app button.
But when I access the site via browser the css breaks.

Not sure where I am screwing up.
Help please..
Thanks

6 years ago

@shreyas, The file '/user/themes/quark/css/custom.css' is being loaded, but is empty...

6 years ago

@shreyas, I have no experience with Heroku and only had a look at the Heroku docs at Grav's documentation.

If you followed the examples given to the letter and use the given post install commands:

TXT
"scripts": {
  "compile": [
    "bin/grav install",
    "bin/gpm install quark -y"
  ]
}

Then, if I understand correctly, a fresh copy of Grav and Quark are installed at every deployment at Heroku.

Since you have made changes to Quark itself and not an inherited theme, your custom.css is overridden with an empty file.

Suggestion:

  • See what happens if you remove "bin/gpm install quark -y" from above scripts.

If that doesn't work, I have no other suggestion at the moment...

last edited 02/03/20 by pamtbaau
6 years ago

Thanks @pamtbaau,
Acutally I did follow the tutorial but the app wouldn't deploy.
This is most probably because I am not sure which json file to place the script.
Is the json file to be placed in the json found in the grav-admin folder or outside in the heroku app folder? I tried them both, to epic failure..

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 234 2 months ago
Themes & Styling · by Ian, 2 months ago
3 121 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 486 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 75 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 154 3 months ago