Multiple development instances

On my development box, I find myself needing multiple instances. One site I’m importing is on stable, others use importers that I am developing. Right now what I do is when switching jobs, I switch branches in git and run a script that does

RAILS_ENV=development
export RAILS_ENV
RAILS_ENV=development bundle exec rake db:drop db:create db:migrate
bundle exec rake admin:create

It’s really annoying when I’ve, say, run an importer that takes several hours and then want to run it again with updated input (and not have to re-import the whole thing).

Is there something different I should be doing? Perhaps I should run separate instances with Vagrant? Contrive to tell Discourse to use a different database for each different job?

Or am I doing the Right Thing?

1 Mi Piace

Mi dispiace rispondere a un argomento così datato. Sei mai riuscito a farlo funzionare? Il mio caso d’uso è voler fare alcuni test con la configurazione di una rete di siti Discourse, dove alcuni dei siti funzionano come provider DiscourseConnect e altri siti funzionano come client DiscourseConnect. Posso configurare più siti di produzione per questo, ma sarebbe fantastico poter avere i siti sul mio computer locale.

Sarà davvero difficile far funzionare DiscourseConnect (almeno come sorgente, che necessita di un URL) in fase di sviluppo. Se sei bravo con quei giochi DNS (come instradare quelli attraverso il tuo firewall?), allora nulla ti impedisce di eseguire più siti di produzione sulla tua macchina locale.

1 Mi Piace

Non lo sono :slight_smile: Continuerò a testare sui siti di produzione.

1 Mi Piace