我正在docker使用dokku。尝试使用https://github.com/leafo/heroku-buildpack-lua/调试问题。 是否可以查看和查看泊坞窗容器的内容?
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加载路径中的某个位置。
谢谢!
答案 0 :(得分: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>
我认为如果你进入服务器,就可以运行dokku run yourapp <command>