我正在使用ember-cli 0.0.33
我使用
创建了默认应用ember new stealth
然后我用
构建它ember build --environment=production
然后我将index
文件上传到https://d1mungh8jer63d.cloudfront.net/index.html
和asset
个文件到../assets/*
,然后在index
中打开了Chrome
个网址,{ {1}}并且两者都有一个空白的白色屏幕。
接下来,我没有改变任何东西,我跑了
Firefox
这给了我完全相同的ember s --environment=production --live-reload=false
个文件。我将浏览器打开到dist
,页面有localhost:4200
。
但Welcome to Ember.js
和index.html
都有相同的来源:
localhost:4200
为什么一个“工作”/显示<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Stealth</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="/" />
<link rel="stylesheet" href="https://d1mungh8jer63d.cloudfront.net/assets/vendor-d41d8cd98f00b204e9800998ecf8427e.css">
<link rel="stylesheet" href="https://d1mungh8jer63d.cloudfront.net/assets/stealth-de3c495d5da3bffcdc865aaa60f76ab3.css">
</head>
<body>
<script>
window.StealthENV = {"baseURL":"/","locationType":"auto","EmberENV":{"FEATURES":{}},"APP":{}};
window.EmberENV = window.StealthENV.EmberENV;
</script>
<script src="https://d1mungh8jer63d.cloudfront.net/assets/vendor-5429f75166356b28c3e42dd401abaf36.js"></script>
<script src="https://d1mungh8jer63d.cloudfront.net/assets/stealth-271c63d147abd689113e3c0bae25a9e5.js"></script>
<script>
window.Stealth = require('stealth/app')['default'].create(StealthENV.APP);
</script>
</body>
</html>
,而另一个只显示空白屏幕?我如何让Welcome to Ember.js
“工作”?