Created a new theme, now what?
-
@julianlam any ideas? I am going to try to update the .gitignore file later to try that, unless that is advised against.
-
Ah, sorry about the delay @src1988.
If you have a theme created and want to share it publically with others, you'll want to publish your theme onto npm as a separate package. Ensure that the
name
field is unique (e.g. notnodebb-theme-vanilla
), and follow the steps outlined in that guide I linked to, above.Keep in mind this will allow your theme to be installed by anybody, so that may not be what you want.
If you don't want to go the npm route, you'll have to copy that folder into
node_modules/
as a separate folder (e.g.node_modules/nodebb-theme-vanilla
is the vanilla theme, so your theme would live atnode_modules/nodebb-theme-src1988
, or whatever you named it).Then manually
git add
that folder, and commit it:git add node_modules/{your-theme-folder} git commit -m "added my theme" git push heroku master ``` ---- @psychobunny said: > (edit the .gitignore?) No need to edit it, as manually added files *do* override the `.gitignore` :+1: Good idea though!
-
Thanks for the reply @julian. I made sure the names were unique in all of the json files from my copied version of vanilla. I did the add (it forced me to use -f since the files were listed in .gitignore), but they were added, committed, then pushed. I then restarted the dyno to restart node and the theme isnt listed in the Installed Themes section, would it appear there?
-
The one-off dyno didnt seem to do much, but what I did was actually publish the new theme (copy) to my npm account and then just list the dependency in the root package.json and then did another commit/push and now it lists it in the admin screen. I'm curious, how is everyone else making all of these changes without having to do all of this stuff?
-
@src1988 I'd recommend them. The droplets are well priced and reliable, there's support for most platforms, but it's a case of supply and demand, the number of ubuntu users is higher than heroku, therefore support is easier to come by , added to this, 85% of questions asked have already been answered somewhere on the forum, or in the documentation.
If this forum were hosted in Heroku, I'd imagine that more users would use heroku, they want the nodebb experience (if the NodeBB forum looks good and works, so will theirs).
If you want to try Digital Ocean, I believe voucher code
ALLSSD10
will give you $10 of free credit (2 months of time on the $5 droplet). Get involved in their referral program too, for every $25 someone spends using your referral, you get $25. I've had my droplet for 2-3 months, and still got another 7 or 8 months left of referrals and free credit to use before I have to dip into my pocket. (If more people clicked my link, that would extend this... (Other referral codes are available))Maybe NodeBB needs a demo forum that gets purged every 24 hours so people can play with the admin area and see how it all works) Or if anyone can do a voice like Morgan Freeman, we can record a Screencast of the backend explaining everything.