The discussion revolves around setting up a local development environment for Discourse on Ubuntu 16.04. j127 asks about the best workflow, considering options like system environment, Vagrant, or Docker, and seeks advice on syncing code and data with a production Docker install. pfaffman recommends using a branch, pulling from upstream, and creating plugins for syncing. j127 also asks about resetting databases, prompting sam to share a simpler script for dropping and recreating databases and migrating. j127 then reports an issue with saving the ‘about me’ field, which pfaffman resolves by suggesting a git pull to update to a fix.
I’ve been searching around for the ideal way to develop a discourse site on my laptop (Ubuntu 16.04), but am unsure about the most current best practices. I’m new to Rails and am having trouble figuring out how to setup a local development environment for migration from Drupal, theme development, and plugin development.
Thanks. Do you have a system for truncating (or dropping and resetting) the databases while working? Right now I’m trying to create a bash script that will do it, but I’m not sure if someone has already solved this kind of problem.
Something like this (unfinished, non-working import script):
When I save the “about me” field on my local machine (Ubuntu 16.04), the UI says that it has been saved, but when I do a hard refresh of the page, the text is missing. Is there something else that has to be configured to get it to save that to the database?
Rails 5.1.3
Ruby 2.4.1p111
Postgres 9.5.9
Redis server 3.0.6
I can get to redis from irb. The local site seems to otherwise mostly work.