mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
27
app/views/layouts/ember_cli.html.erb
Normal file
27
app/views/layouts/ember_cli.html.erb
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><%= content_for?(:title) ? yield(:title) : SiteSetting.title %></title>
|
||||
|
||||
<%= stylesheet_link_tag(:ember_cli) %>
|
||||
|
||||
</head>
|
||||
<body class="requires-ember-cli">
|
||||
<div class='warning'>
|
||||
<h1>Ember CLI is Required in Development Mode</h1>
|
||||
|
||||
<p>To run Ember CLI in development mode, please do the following:</p>
|
||||
|
||||
<pre><code>$ bin/ember-cli</code></pre>
|
||||
|
||||
<p>If it's your first time starting Ember CLI you'll have to run yarn:</p>
|
||||
|
||||
<pre><code>$ cd app/assets/javascripts/discourse && yarn</code></pre>
|
||||
|
||||
<p>Then visit the following URL to use Discourse:</p>
|
||||
|
||||
<a href="http://localhost:4200/">http://localhost:4200</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user