From e4054f040fb2d118a6a826d7c93fe2b7eec6c932 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Thu, 5 May 2022 23:52:35 +0200 Subject: [PATCH] DEV: Replace postCreateCommand with postStartCommand (#16665) The boot script should be run whenever the container is started. Otherwise, when you restart a stopped container you don't have the database running. --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index cd486c6510b..776127446ef 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,7 +6,7 @@ "settings": { "search.followSymlinks": false }, - "postCreateCommand": "sudo /sbin/boot", + "postStartCommand": "sudo /sbin/boot", "extensions": ["rebornix.Ruby"], "forwardPorts": [9292], "remoteUser": "discourse",