discourse/app/views/layouts/ember_cli.html.erb
Ryan Lerch 1fffe941bf
remove some hardcoded 'localhost's from dev environment (#14801)
Trying to use a local test hostname other than localhost
(e.g. discourse.test )for discourse development was difficult due
the fact that localhost was hardcoded in a few places. This patch
uses existing environment variables to allow a developer to use a
different domain when developing.

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2021-11-03 11:26:44 +08:00

24 lines
624 B
Plaintext

<!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>Then visit the following URL to use Discourse:</p>
<h3><a href="http://<%= Discourse.current_hostname %>:4200/">http://<%= Discourse.current_hostname %>:4200</a></h3>
</div>
</body>
</html>