Is using two instances with shared database but different theme/plugins possible?

General Discussion
  • I'll soon be creating a custom theme and some plugins for a forum that is already in use and I'm thinking about running second instance on beta.forum.url with the new theme and plugins enabled when it's close to being ready (but in need of testing), that I'd like to work with the same database as the main forum - so that users can just use beta if they want to preview new features while still using the same forum as others.

    Now, I know that the list of themes/plugins enabled is stored in database, so I'd probably need to do something about that, but is there anything else that would stop me from running two instances with a bit different configs off one database? Some sync issue with posts/topics or something like that?

    EDIT: actually, since I might as well help others, would it be a good idea to add an option to add some instance identifier to db plugin entries to core? Perhaps in config.json? So that if it's set NodeBB would look for plugins:<instance>:active for example.


Suggested Topics


  • Awards Plugin

    General Discussion
    0 Votes
    1 Posts
    150 Views

    Does anyone have experience with the Awards plugin that could answer a few questions via DM?

  • 0 Votes
    3 Posts
    330 Views

    Thank you. I'll try to make my own plugin for it.

  • NGINX as Proxy/Advice

    General Discussion
    0 Votes
    4 Posts
    1k Views

    @julian @PitaJ

    Totally got it. Thanks you guys. I didn't understand the "why" before, now I get it! 🙂

  • 0 Votes
    2 Posts
    1k Views

    MongoDB is a NoSQL database. It's a non-relational database of keys-values objects.
    NodeBB doesn't use SQL, so you will not use your SQL database to make NodeBB work.

  • 0 Votes
    2 Posts
    3k Views

    @educator Hi there. Fellow Indian here. I would recommend DigitalOcean over Vultr due to a number of reasons having used both. However there is a 3rd option which is better imo and that is Linode. 2 main reasons.

    Linode offers double RAM at 10$. You get 2gb RAM instead of 1gb for 10$. What I am getting from your post is that you want a 5$ plan. However it will be insufficient for even a small sized forum. Try going for the 2gb RAM option at Linode. Unless you are a registered business in India you shall have to pay 15% service tax on Digitalocean as of Jan 1 2016. Businesses dont have to pay this tax as long as they dont have a turnover of greater than 10 lacs per annum. This is because DO has officially entered the Indian Market and will need to comply with the Indian Tax authorities. This is not the case of Linode as they dont have an Indian office . This means that the DO plan at 10$ will be more than twice expensive when compared to Linode.

    Rest is upto you. Feel free to ask anymore questions