将Telescope App部署到Amazon EC2

时间:2015-05-27 20:17:55

标签: meteor amazon-ec2 telescope

我做错了什么?我正在尝试部署我的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
}

2 个答案:

答案 0 :(得分:1)

常见的陷阱:

  • 您确定在部署之前运行了mup setup吗?

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

答案 1 :(得分:0)

我确实运行了mup setup,确实使用了http://,并多次尝试将其连接/部署。

我放弃了,只是使用了Wordpress主题,并按照我想要的方式定制它。另一种方式太复杂了。它不允许我及时做我想做的事。感谢你们尽力帮助他们。