0

我正在使用dockerdokku。尝试使用https://github.com/leafo/heroku-buildpack-lua/调试问题。是否可以查看和检查 docker 容器的内容?

vagrant@dokku:~$ dokku logs dokku.me -t
/app/.profile.d/config_vars: line 3: /app/packages/lib/lua/5.1/?.so: No such file or directory
/app/.profile.d/config_vars: line 4: /app/packages/share/lua/5.1/?.lua: No such file or directory
/app/.profile.d/config_vars: line 4: /app/packages/share/lua/5.1/?/init.lua: No such file or directory
lua: /app/bin/lapis:3: module 'lapis.cmd.actions' not found:
no field package.preload['lapis.cmd.actions']
no file './lapis/cmd/actions.lua'
no file '/usr/local/share/lua/5.1/lapis/cmd/actions.lua'
no file '/usr/local/share/lua/5.1/lapis/cmd/actions/init.lua'
no file '/usr/local/lib/lua/5.1/lapis/cmd/actions.lua'
no file '/usr/local/lib/lua/5.1/lapis/cmd/actions/init.lua'
no file './lapis/cmd/actions.so'
no file '/usr/local/lib/lua/5.1/lapis/cmd/actions.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './lapis.so'
no file '/usr/local/lib/lua/5.1/lapis.so'
no file '/usr/local/lib/lua/5.1/loadall.so'

stack traceback:
[C]: in function 'require'
/app/bin/lapis:3: in main chunk
[C]: ?

我建议将lapis安装在 lua 加载路径之外的某个地方。

谢谢!

4

1 回答 1

0

考虑:

  • 应用名称是yourapp
  • 服务器名称是domain.com
  • RequestTTY true在您的~/.ssh/config部分中配置为domain.com

你可以运行:

ssh dokku@domain.com run yourapp ls -la

它将输出您部署的应用程序的目录。同样适用于cd或任何其他命令,语法相同:ssh dokku@domain.com run yourapp <command>

我想如果你通过 ssh 进入服务器,你可以运行dokku run yourapp <command>

来源: http: //progrium.viewdocs.io/dokku/remote-commands

于 2014-10-05T06:54:39.360 回答