简体   繁体   English

将Telescope App部署到Amazon EC2

[英]Deploying Telescope App to Amazon EC2

What am I doing wrong? 我究竟做错了什么? I'm trying to deploy my Telescope app. 我正在尝试部署我的Telescope应用程序。 I'm using this to do that: https://github.com/arunoda/meteor-up . 我正在使用它来做到这一点: https : //github.com/arunoda/meteor-up It gives me an error when I try to deploy using Mup. 当我尝试使用Mup进行部署时,这给了我一个错误。 Here's my mup.json config file: 这是我的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
}

Common pitfalls : 常见陷阱:

  • Are sure you ran mup setup before deploying ? 确保在部署之前运行了mup setup

  • Try using a relative path to setup the app location, ie replace ~/Documents/appname/Telescope by . 尝试使用相对路径来设置应用程序位置,例如,将~/Documents/appname/Telescope替换为. if your mup.json is located at the root of your Telescope instance. 如果mup.json位于Telescope实例的根目录。

I did run mup setup, did use http://, and tried many times to get it to connect/deploy. 我确实运行了mup安装程序,确实使用了http://,并尝试了很多次以使其连接/部署。

I gave up and just went with a Wordpress theme and am customizing it how I want it. 我放弃了,只使用了一个Wordpress主题,并根据需要对其进行了自定义。 The other way was way too complicated. 另一种方法太复杂了。 It didn't allow me to do what I wanted in a timely manner. 它不允许我及时做自己想做的事情。 Thanks for trying to help though guys. 感谢您尝试帮助家伙。

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

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