DEV: Require Ember CLI to be used in development mode (#12738)

We really want to encourage all developers to use Ember CLI for local
development and testing. This will display an error page if they are not
with instructions on how to start the local server.

To disable it, you can set `NO_EMBER_CLI=1` as an ENV variable
This commit is contained in:
Robin Ward
2021-04-29 14:13:36 -04:00
committed by GitHub
parent bd23e793b7
commit 51f872f13a
5 changed files with 56 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
require 'pathname'
RAILS_ROOT = File.expand_path("../../", Pathname.new(__FILE__).realpath)
PORT = ENV["UNICORN_PORT"] ||= "9292"
PORT = ENV["UNICORN_PORT"] ||= "3000"
Dir.chdir(RAILS_ROOT) # rubocop:disable Discourse/NoChdir
Dir.chdir("app/assets/javascripts/discourse") # rubocop:disable Discourse/NoChdir