繁体   English   中英

将Telescope App部署到Amazon EC2

[英]Deploying Telescope App to Amazon EC2

我究竟做错了什么? 我正在尝试部署我的Telescope应用程序。 我正在使用它来做到这一点: https : //github.com/arunoda/meteor-up 当我尝试使用Mup进行部署时,这给了我一个错误。 这是我的mup.json配置文件:

{
  // Server authentication info
  "servers": [
    {
      "host": "52.25.228.14",
      "username": "ec2-user",
      //"password": "password"
      // or pem file (ssh based authentication)
      "pem": "~/Documents/appname/appname.pem"
    }
  ],

  // Install MongoDB in the server, does not destroy local MongoDB on future setup
  "setupMongo": true,

  // WARNING: Node.js is required! Only skip if you already have Node.js installed on server.
  "setupNode": true,

  // WARNING: If nodeVersion omitted will setup 0.10.36 by default. Do not use v, only version number.
  "nodeVersion": "0.10.36",

  // Install PhantomJS in the server
  "setupPhantom": true,

  // Show a progress bar during the upload of the bundle to the server. 
  // Might cause an error in some rare cases if set to true, for instance in Shippable CI
  "enableUploadProgressBar": true,

  // Application name (No spaces)
  "appName": "appname",

  // Location of app (local directory)
  "app": "~/Documents/appname/Telescope",

  // Configure environment
  "env": {
    "ROOT_URL": "ec2-52-25-228-14.us-west-2.compute.amazonaws.com"
  },

  // Meteor Up checks if the app comes online just after the deployment
  // before mup checks that, it will wait for no. of seconds configured below
  "deployCheckWaitTime": 15
}

常见陷阱:

  • 确保在部署之前运行了mup setup

  • 尝试使用相对路径来设置应用程序位置,例如,将~/Documents/appname/Telescope替换为. 如果mup.json位于Telescope实例的根目录。

我确实运行了mup安装程序,确实使用了http://,并尝试了很多次以使其连接/部署。

我放弃了,只使用了一个Wordpress主题,并根据需要对其进行了自定义。 另一种方法太复杂了。 它不允许我及时做自己想做的事情。 感谢您尝试帮助家伙。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM