Skip to content

Commit

Permalink
fixed cloudshell create container error
Browse files Browse the repository at this point in the history
  • Loading branch information
lixinyang123 committed May 4, 2024
1 parent 0f098f2 commit 3412d30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: cloudshell
services:

cloudshell:
image: lixinyang/cloudshell
ports:
- "3000:80"
build:
Expand Down
2 changes: 1 addition & 1 deletion src/services/nginx.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default {

//重启nginx
child_process.exec("nginx -s reload", (error, stdout, stderr) => {
if (error || stderr) {
if (error) {
//重启nginx失败,还原配置文件
fs.writeFileSync(configPath, config)
callback(false)
Expand Down

0 comments on commit 3412d30

Please sign in to comment.