2016-08-30 16 views

回答

0

我已經爲CF創建了一個插件,但是由於它爲SSH創建了一個新實例,所以它不再工作了。但是,您仍然可以使用它用於啓動要連接的會話的腳本。嘗試重新推動與以下選件的應用:

-u none -c 'curl -s https://raw.githubusercontent.com/danhigham/cf-console/master/install.sh > /tmp/install.sh && bash /tmp/install.sh && sleep infinity'

例如cf push show-headers -u none -c 'curl -s https://raw.githubusercontent.com/danhigham/cf-console/master/install.sh > /tmp/install.sh && bash /tmp/install.sh && sleep infinity'

爲「休眠」的電話將確保調用tmate後的容器熬夜。推送成功後,查看日誌中的一行,看起來像這樣;

2016-09-01T08:01:36.70+0100 [APP/0]  OUT ./include/event2/util.h 
2016-09-01T08:01:36.70+0100 [APP/0]  OUT ./bin/tmate 
2016-09-01T08:01:50.21+0100 [APP/0]  OUT [email protected] 

這裏的第三行顯示了你應該能夠通過ssh [email protected]連接到容器上的SSH地址。您應該使用兩個窗格連接到一個tmux會話,一個使用bash shell,另一個使用由相關buildpack運行的命令。不用說,更好的解決方案首先是使用迭代單元而不是DEA ;-)

相關問題