Comments (10)
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?
from spree_themes.
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.
from spree_themes.
But the author's advise and guidance still would be appreciated. Thank you.
from spree_themes.
@55monkey Can you describe in detail all the actions?
from spree_themes.
@PareshGupta @himanshumishra31 @bansalakhil @mjuneja
Give the answer please. Thank you.
from spree_themes.
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.
from spree_themes.
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.
from spree_themes.
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.
from spree_themes.
@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.
from spree_themes.
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
.
from spree_themes.
Related Issues (20)
- not uploading,Template file invalid HOT 12
- Theme not being applied after compile and publish HOT 2
- Deploy to Heroku/Store theme files on Amazon S3 HOT 1
- The `branch` option for `gem 'vinsol_spree_themes'` is not allowed. HOT 3
- Not able to upload the theme HOT 5
- Not able to use gem spree_yoda_theme HOT 5
- Cannot delete theme in production HOT 1
- undefined local variable or method 'cache_key_for_taxons' with spree 3.4.4 HOT 4
- uninitialized constant Spree::Theme::CURRENT_THEME_PATH (NameError) HOT 8
- Route error after publishing theme HOT 1
- Error while mail is sent on order complete by user HOT 2
- Mysql2::Error: Data too long for column 'body' at row 1: INSERT INTO `spree_themes_templates HOT 1
- How to Change Theme default LOGO?
- ActionView::Template::Error (No route matches {:action=>"show", :controller=>"spree/admin/themes_preview", :theme_id=>nil} HOT 1
- Google Analytics Partial Error HOT 1
- suggestion - theme preview
- Theme is not updating after modifying it directly from the filesystem
- When it will being work on spree 3.7? HOT 1
- Support for Spree 4 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree_themes.