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

After some time theme on frontend resets default #27

Open
elavretskiy opened this issue May 28, 2018 · 10 comments
Open

After some time theme on frontend resets default #27

elavretskiy opened this issue May 28, 2018 · 10 comments
Assignees

Comments

@elavretskiy
Copy link

Hello.
Installed theme-BigShop-3-3-bump to heroku.
After deploy frontend theme skipped to default view, but on backend selected theme-BigShop-3-3-bump.

https://monosnap.com/file/RALPrBxdqvDB9qECumLaBm7yv1sTzX

@55monkey
Copy link

We have the same issue. Theme was working on Heroku straight after install but then Heroku reset this to default spree template/theme. Can anyone tell us what to do to be able to use this theme on Heroku?

@55monkey
Copy link

Eventually, I just deleted template completely and then uploaded its assets, images and views into main app folder pushed to heroku and it seems to be working fine now. Just do not use their install procedure for production if you are going to use heroku.

@55monkey
Copy link

But the author's advise and guidance still would be appreciated. Thank you.

@elavretskiy
Copy link
Author

@55monkey Can you describe in detail all the actions?

@elavretskiy
Copy link
Author

@PareshGupta @himanshumishra31 @bansalakhil @mjuneja
Give the answer please. Thank you.

@himanshumishra31
Copy link
Contributor

himanshumishra31 commented Jun 18, 2018

Hi @elavretskiy ,
We were trying to replicate the issue since the day you posted. But we couldn't replicate it. Our application is working fine.

Can you please tell us the steps so that we could replicate it and help you with it.

@radilr1
Copy link

radilr1 commented Apr 17, 2019

I reproduced the problem. The reason is that heroku filesystem is not persistent, which means all the static assets (theme and uploaded images) will be lost on deploy. I tried pushing all the templates files in the public folder to the repository also I tried running theme.publish from the command line but nothing worked.

@theo-bittencourt
Copy link

As @radilr1 just said, Heroku works with an ephemeral system.
So all uploaded files should be sent to AWS S3 or similar service.

All we need to know is about the Vinsol Spree Theme support for these services.

@himanshumishra31
Copy link
Contributor

@radilr1 When the theme is published, a 'current' folder in public/vinsol_spree_themes is created with symlink to the theme folder which has been published. As you know the heroku filesystem is not persistent, thus the symlink data is lost. In order to make theme work with heroku, you need to publish the theme on your local system and change the symlink path to the current directory theme folder instead of the system path of the theme folder and then deploy that application to heroku. It will find the symlink directory theme and theme will be published.
Hope this works.

@theo-bittencourt
Copy link

Updating my .gitignore worked for me:

...
/public/assets/*
!/public/assets/vinsol_spree_theme
...

Seems like the settings of Vinsol precompile is putting files in the public/assets instead public/assets/vinsol_spree_theme.
The generated HTML fetchs from public/assets/vinsol_spree_theme.

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

6 participants