javascript - 验证部署失败 : "SyntaxError: Unexpected" while Mup builds to NGINX?

标签 javascript node.js nginx meteor mup

尝试通过 mup 构建一个 meteor 应用程序到在 Nginx 上运行的 digitalOceans droplet。

在这个过程中,我一直强调部署验证。

nodejs&node版本:v4.8.4

npm 版本:2.15.11

错误:

x Verifying Deployment: FAILED

    -----------------------------------STDERR-----------------------------------
    WARN package.json meteor-dev-bundle@0.0.0 No description
    npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
    npm WARN package.json meteor-dev-bundle@0.0.0 No README data
    npm WARN cannot run in wd meteor-dev-bundle@0.0.0 node npm-rebuild.js (wd=/bundle/bundle/programs/server)
    => Starting meteor app on port:80

    /bundle/bundle/programs/server/mini-files.js:82
    const unicodeNormalizePath = (path) => {
                                         ^
    SyntaxError: Unexpected token >
        at Module._compile (module.js:439:25)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
        at Module.require (module.js:364:17)
        at require (module.js:380:17)
        at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:9:13)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)

    => Redeploying previous version of the app

    -----------------------------------STDOUT-----------------------------------

    To see more logs type 'mup logs --tail=100'

    ----------------------------------------------------------------------------

这是日志:https://pastebin.com/zs8FG86V

谢谢!

最佳答案

通过在 mup.js 文件中将 docker 图像从 'kadirahq/meteord' 更改为 'abernix/meteord:base' 来修复它。

关于javascript - 验证部署失败 : "SyntaxError: Unexpected" while Mup builds to NGINX?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46793414/

相关文章:

mysql - TypeORM QueryRunner 选择不同的

ssl - Jelastic Nginx http 到 https 重定向

nginx - PHP-FPM - 上游在读取响应 header 时过早关闭连接

javascript - 关于 JavaScript 或 AJAX 的简单问题

javascript - onclick React 中传递函数名和通过回调调用有什么区别

javascript - 点击另一个div时如何更改div样式

javascript - Vuejs 获取编辑后的输入

node.js - 在数组中的对象中按日期搜索

javascript - 在 setinterval 中使用长间隔时,Node.js 崩溃

amazon-web-services - 如何使用由 AWS Certificate Manager 管理的 Nginx Ingress Controller、AWS NLB 和 TLS 证书将 HTTP 重定向到 HTTPS?