I’m trying to start a development environment with the latest tagged version of discourse. It was working until a new docker image was downloaded (when I d/boot_dev --init) and I now get errors. It seems that the docker image gets out of sync with older versions of the source.
Any idea of what I’m doing wrong or how to make this work?
Reproduction Steps
Docker development environment on Ubuntu.
$ git clone https://github.com/discourse/discourse.git
$ cd discourse
$ git checkout v2.9.0.beta9
$ d/boot_dev --init
This fails during the “Migrating database…” phase with the following error:
Migrating database...
rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - /src/app/assets/javascripts/node_modules/xss/dist/xss.min.js
/src/lib/pretty_text.rb:613:in `block in ctx_load'
/src/lib/pretty_text.rb:612:in `each'
/src/lib/pretty_text.rb:612:in `ctx_load'
/src/lib/pretty_text.rb:108:in `create_es6_context'
/src/lib/pretty_text.rb:153:in `block in v8'
/src/lib/pretty_text.rb:151:in `synchronize'
/src/lib/pretty_text.rb:151:in `v8'
/src/lib/pretty_text.rb:305:in `block in escape_emoji'
/src/lib/pretty_text.rb:606:in `block in protect'
/src/lib/pretty_text.rb:605:in `synchronize'
/src/lib/pretty_text.rb:605:in `protect'
/src/lib/pretty_text.rb:304:in `escape_emoji'
/src/app/models/emoji.rb:222:in `unicode_unescape'
/src/app/models/topic.rb:458:in `fancy_title'
/src/app/models/topic.rb:347:in `block in <class:Topic>'
/src/app/models/category.rb:300:in `block in create_category_definition'
/src/app/models/category.rb:295:in `create_category_definition'
/src/lib/seed_data/categories.rb:114:in `create_category'
/src/lib/seed_data/categories.rb:15:in `block (2 levels) in create'
/src/lib/seed_data/categories.rb:15:in `each'
/src/lib/seed_data/categories.rb:15:in `block in create'
/src/lib/seed_data/categories.rb:14:in `create'
(eval):6:in `block (2 levels) in run_file'
/src/lib/tasks/db.rake:234:in `block (2 levels) in <main>'
/src/lib/distributed_mutex.rb:57:in `block in synchronize'
/src/lib/distributed_mutex.rb:53:in `synchronize'
/src/lib/distributed_mutex.rb:53:in `synchronize'
/src/lib/distributed_mutex.rb:38:in `synchronize'
/src/lib/tasks/db.rake:214:in `block in <main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)