Want to run a dev site connected to live redis + pgsql instance


(Rod James) #1

@codinghorror if I want to run a dev site here at the house, and connect to the live redis + pgsql instance, can that be done?


I just converted my site to Discourse!
(Rafael dos Santos Silva) #2

The usual approach is to restore a backup of the live site on your dev environment, so you can tinker without fear.


(Rod James) #3

I did that, however I’d like to have a local copy of the site and connect to the live database. There must be a way to have it point to the online dbase is there not?


(Rafael dos Santos Silva) #4

That’s technically possible… However I don’t see why someone would do something so complicated.

  • Every like, pageview, post, reply counts on Discourse, are you sure you want replies on a dev instance going live?

  • Opening database ports to outside world are another attack vector

  • Many things no one got yet, because this is a very specific setup