gpt4 book ai didi

node.js - 在 Heroku 上部署 ember 应用程序

转载 作者:太空宇宙 更新时间:2023-11-04 00:24:21 24 4
gpt4 key购买 nike

我在 Heroku 上部署 ember 应用程序时遇到了这个问题。 ember build 正在我本地运行。我也尝试清除 npm 和 Bower 缓存,但仍然没有成功。

    ember-cli : 2.9.1
node : 6.10.1
npm : 3.10.10
bower : 1.8.0

git Push heroku master

remote: DEPRECATION: Overriding init without calling this._super is deprecated. Please call `this._super.init && this._super.init.apply(this, arguments);` addon: `ember-cli-htmlbars`
remote: at Function.Addon.lookup (/tmp/build_f0a1863f911e012b791218614939ef87/node_modules/ember-cli/lib/models/addon.js:1005:27)
remote: WARNING: Node v7.9.0 has currently not been tested against Ember CLI and may result in unexpected behaviour.
remote: Could not start watchman; falling back to NodeWatcher for file system events.
remote: Visit http://ember-cli.com/user-guide/#watchman for more info.
remote: cleaning up...
remote: Build failed.
remote: File: assets/vendor.css
remote: The Broccoli Plugin: [broccoli-persistent-filter:CleanCSSFilter] failed with:
remote: Error: Broken @import declaration of "theme.css"
remote: Broken @import declaration of "accordion.css"
remote: Broken @import declaration of "autocomplete.css"
remote: Broken @import declaration of "button.css"
remote: Broken @import declaration of "datepicker.css"
remote: Broken @import declaration of "dialog.css"
remote: Broken @import declaration of "draggable.css"
remote: Broken @import declaration of "menu.css"
remote: Broken @import declaration of "progressbar.css"
remote: Broken @import declaration of "resizable.css"
remote: Broken @import declaration of "selectable.css"
remote: Broken @import declaration of "selectmenu.css"
remote: Broken @import declaration of "sortable.css"
remote: Broken @import declaration of "slider.css"
remote: Broken @import declaration of "spinner.css"
remote: Broken @import declaration of "tabs.csError running: ember build --environment production 2>&1
remote: s"
remote: Broken @import declaration of "tooltip.css"
remote: at arrayToError (/tmp/build_f0a1863f911e012b791218614939ef87/node_modules/array-to-error/index.js:45:15)
remote: at minifyCallback (/tmp/build_f0a1863f911e012b791218614939ef87/node_modules/clean-css-promise/index.js:33:20)
remote: at module.exports (/tmp/build_f0a1863f911e012b791218614939ef87/ember-cli-build.js:23:14)
remote: at Class.setupBroccoliBuilder (/tmp/build_f0a1863f911e012b791218614939ef87/node_modules/ember-cli/lib/models/builder.js:70:19)
remote:
remote:
remote: -----> Failed trying to compile heroku/ember-cli-deploy
remote: ! Push rejected, failed to compile emberjs app.
remote:
remote: ! Push failed

最佳答案

ember install ember-cli-jquery-ui

在 ember-cli-build.js 中添加以下行:

var app = new EmberApp(defaults, {
minifyCSS: {
options: {
processImport: false
}
}
});
ember build --environment production

关于node.js - 在 Heroku 上部署 ember 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43388439/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com