Skip to content

打包成docker启动之后自动关闭 #1

@mumushuiding

Description

@mumushuiding

第一,本地测试和部署都没有问题。
第二,复制粘贴文档中提供的dockerfile,设置没问题
第三,按提示打包成docker文件

但是,一启动就自动关闭,这是什么原因

docker run -p 7001:7001 egg-boilerplate

PublicOpinionSys@1.0.0 start /usr/src/app
egg-scripts start --daemon --title=egg-server-
[egg-scripts] Starting egg application at /usr/src/app
[egg-scripts] Run node /usr/src/app/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-","baseDir":"/usr/src/app","framework":"/usr/src/app/node_modules/egg"} --title=egg-server-
[egg-scripts] Save log file to /root/logs
[egg-scripts] Wait Start: 1...
[egg-scripts] egg started on http://127.0.0.1:7001

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions