-
Notifications
You must be signed in to change notification settings - Fork 251
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
Add support for Theme upload #9
Comments
Yes, you are absolutely right about the theme uploading issue. If you need to use this feature, I would recommend using AWS S3 as your file storage while building the application. I am still working on a viable way to enable theme uploads for free. If you have any service in mind, do share. Thank you. |
Integrating Cloud Storage could be a good option. |
Thank you. It looks promising. I will test it's integration with heroku in near future. |
Are you sure that in case of S3/Cloud Storage, the uploaded theme will not be stored in the file system? |
@aayushdutt My bad, I just verified that it does not support themes upload. I am looking into the Ghost-Storage-Base repository to make a storage adapter with themes storage enabled. |
Voting for this enhancement 👍🏼 |
@codechair I still have not found a viable solution to this. Things either require paid subscriptions or do not support files other than static images. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
S3 supports any file types. Not only images. |
Hey @xjose97x S3 does support all file types, however it requires you to have a paid AWS subscription, which many do not have. S3 adapter of Ghost however does not seem to have support for storing themes on to S3, it just puts them in local storage. |
Is this issue also the reason my gatsby + netlify deployment shows the default theme while my Heroku deployment shows the active theme? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
+1 |
You can clone a theme in local and edit as needed, push it to GitHub, and change the theme URL on the package.json file to your GitHub theme repo. Finally, deploy on Heroku.
|
Great support @SNathJr |
"uploading the themes directly. If uploaded, the theme would go missing after some time. " I also encountered this. Does anyone know how to solve this? Is there any workaround for this? Thanks in advance. |
|
Hello @aayushdutt, What should be the value of my theme? and as you said "Clone it and copy your theme in content/themes" - Is this in zip file format? or the extracted one? because upon uploading it in content/themes there were no changes to push. Many thanks in advance. |
@vyronarediano You should copy the extracted contents inside |
Alright, I see @aayushdutt. But by the way, when I did this, there were no changes to push in my git application. Also, what would be the value of the theme in package.json (see screenshot above)? Thanks |
As I said, no other change is needed. You don't need to change |
One last thing, what would be the value of the theme in package.json? github:[username]/[name of the theme]? |
You don't need to change it. Just let it be what it is currently. |
Alright. Thank you so much for your help! Really appreciate it :) |
Hello @aayushdutt, I just copied the theme and made the folder look like the one you said but there were no changes to commit and push. |
@vyronarediano there will not be, becuase new folders, has to add manually, if you are using heroku free quota , I don't personally recommend this method,do thing as I told before check my website. |
@vyronarediano Line 9 in 842970d
|
@jerinjacob1999 could you please explain a bit more. I am sorry I couldn't get what you mean. |
Thank you @aayushdutt! Now I'm worried about the Theme might get stolen because it is a public repo. |
@vyronarediano If you need to make your repo private, instead of forking this repository, do the following
Now your changes will be pushed to your private repository. |
Awesome. Thank you @aayushdutt for being helpful! |
@aayushdutt, Thanks for sharing if I do this by just upgrading the version of my theme and redeploy how about my previous changes, will it be save or will go back to the bare state of site. Thanks!!! |
@kodrr All your data should be safe in the MySQL database. You don't need to worry about that. |
@aayushdutt, Actually I just did a theme ver update by just editing package.json then pushing directly to heroku w/o cloning the theme itself to the content folder it seems this is more efficient for me. Thanks, Cheers!!! |
@kodrr yeah that is the best method for using and updating open source themes |
Sorry this is my doing.That theme is not public. I have removed accordingly from fork. Please contact the author for theme. |
Even after adding s3 storage backend, the only files uploaded are images. The theme is not uploaded to the S3 bucket. |
I managed to upload my theme with these steps: heroku git:clone -a your-app
cd your-app
git remote add origin https://github.com/SNathJr/ghost-on-heroku
git pull origin master
# extract zip file of your theme inside `content/themes` dir
# remove content/themes from .gitignore
git commit -am "Add theme"
git push heroku master # deploys the theme |
Thanks for all your help. I have had problems with the themes before and these instructions helped. Now I need to add some redirects via redirects.json. I'm expecting I'll have the same problems. Do you have any suggestions for how to fix this? Happy to open another issue if it's not similar enough. |
Great summary. I do have a question though:Question 1: I've followed your step, but the new theme is still not reflected when i return to my dashboard Here's what I did:
But after checking my dashboard, my theme is still not appearing. Anyone there to help? thanks! |
Due to the Ephimeral file system of Heroku, currently the admin panel doesn't support uploading the themes directly. If uploaded, the theme would go missing after some time. The only way to use custom theme currently is to commit your themes in the code files and then re publish the application.
It would be good if we could add support for theme upload directly via the admin panel.
The text was updated successfully, but these errors were encountered: