[英]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.