2012-12-09 22 views
6

將一個流星應用程序部署到Nodejitsu試用環境,但未能使其運行。從我的流星應用程序目錄執行jitsu deploy後,出現以下錯誤:ReferenceError: Meteor is not defined在Nodejitsu上運行流星應用程序

如果你已經在Nodejitsu上啓動並運行了流星應用程序,請突出顯示你所執行的步驟以及可能會丟失的依賴關係。我會用你的建議,並嘗試讓我的應用程序運行。謝謝。直到這個錯誤是固定

// package.json contents 
{ 
    "name": "test123-meteor", 
    "subdomain": "user123.test123-meteor", 

/* 
* Really not sure about this line here... 
*/ 
    "scripts": { 
    "start": "node client/controllers/GeneralController.js" 
    }, 
    "version": "0.0.1-2", 
    "engines": { 
    "node": "0.8.x" 
    } 
} 
+0

'meteor bundle'然後用nodejitsu部署應用程序嗎? – Swadq

+2

從我聽說的節點光纖(Meteor使用的)當前不兼容nodejitsu,雖然舊版本顯然工作。 – bento

+0

它不會工作:http://stackoverflow.com/questions/13504324/where-can-we-host-meteor-meteorite-applications – booyaa

回答

1

流星不會在nodejitsu運行:node-fibers won't build on SmartOS。如果你想要它,你應該明白錯誤,甚至考慮修復它。 (天真地說,它看起來像需要更多的持久性而不是亮度的東西;對於一個包的構建問題,在其他5個操作系統上未修改的包)。

2

我今天試過,沒有使用demeteorizer時有問題。我在Meteorpedia上寫了下面一篇關於它的小文章,其中包括我的自定義構建腳本,它極大地簡化了部署。

http://www.meteorpedia.com/read/Nodejitsu

相關問題