2013-09-25 26 views
0

我已經安裝了新的EC2實例生產服務器rvmsudo unicorn_rails -c配置/麒麟/ production.rb -D --env生產不能正常工作

當我在當前文件夾中嘗試以下命令

[[email protected] current]$ rvmsudo unicorn_rails -c config/unicorn/production.rb 
    -D --env production 

sudo: unicorn_rails: command not found 

請讓我知道如何開始這是在端口上運行80

在此先感謝

+0

工作是否安裝了寶石和它的依賴? – apneadiving

+0

@apneadiving - 是的,我做過 – krs

回答

0

80端口:首先運行

export rvmsudo_secure_path=1

然後

rvmsudo unicorn_rails -c config/unicorn/production.rb -D --env production 

將肯定

0

你不必使用rvmsudo生產服務器和所有ST藝術你的獨角獸應用服務器。你可以這樣做

bundle exec unicorn -D -c /path/to/app/unicorn.rb -E production 
+0

你能分享一下unicorn_stderr.out –

+0

多好! –