• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

How run a forked Persona v2.021 in NodeBB 0.7.3?

Scheduled Pinned Locked Moved Technical Support
development
9 Posts 3 Posters 2.7k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • henrywrightH Offline
    henrywrightH Offline
    Henry Wright
    wrote on last edited by henrywright
    #1

    Does anyone know the steps I'd need to go through in order to set-up a development copy of NodeBB? I've forked Persona and aim to submit some pull requests.

    The problem is using my forked version of Persona (v2.0.21) inside /nodebb/node_modules/ doesn't seem to work with a 0.7.3 NodeBB install. The logs tell me an older version of Persona (v2.0.13) is required.

    So far, I have NodeBB set up and running on Nginx at http://127.0.0.1:4567

    Path to my NodeBB: /home/ubuntu/nodebb

    Path to my forked .git enabled version of Persona: /home/ubuntu/nodebb-plugin-persona

    I'm at a loss so any tips will be much appreciated!

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #2

    If you want to fork Persona for your own changes, you'll need to rename the theme itself so NodeBB thinks it is a different theme.

    Take care to change the values in package.json, plugin.json, and theme.json, and change references to nodebb-theme-persona to nodebb-theme-henrywright or whatever you'd like it to be named.

    henrywrightH 1 Reply Last reply
    0
  • henrywrightH Offline
    henrywrightH Offline
    Henry Wright
    replied to julian on last edited by henrywright
    #3

    @julian problem is I was planning to contribute back up to the remote Persona repo. I recently made a pull request but I'd like to test my commits going forward. How do you guys do it? Do you have Persona as a .git repo inside your NodeBB .git repo? I've never nested repos like that before.

    Also, I'm assuming I need the master branch of NodeBB?

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #4

    In that case, you'll want to run NodeBB via ./nodebb dev, as that will bypass dependency checks 😄

    henrywrightH 1 Reply Last reply
    0
  • henrywrightH Offline
    henrywrightH Offline
    Henry Wright
    replied to julian on last edited by
    #5

    @julian so I should run ./nodebb dev instead of ./nodebb start?

    Also, I'm wondering if you can have a .git repo (Persona) inside another .git repo (NodeBB)?

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #6

    Yes, and yes.

    henrywrightH 1 Reply Last reply
    0
  • henrywrightH Offline
    henrywrightH Offline
    Henry Wright
    replied to julian on last edited by
    #7

    @julian great stuff. I'll give it a shot! And thanks for the info (...again) 🙂

    1 Reply Last reply
    0
  • psychobunnyP Offline
    psychobunnyP Offline
    psychobunny
    wrote on last edited by
    #8

    Or use grunt which makes theme development a bit speedier. Whenever you save a file it auto-reloads for you and bypasses compilation of things you didn't change (as opposed to compiling everything, which takes additional time on restarting)

    henrywrightH 1 Reply Last reply
    0
  • henrywrightH Offline
    henrywrightH Offline
    Henry Wright
    replied to psychobunny on last edited by
    #9

    @psychobunny Thanks, I'm going to look into Grunt!

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development