discourse/.devcontainer/devcontainer.json
Jarek Radosz e4054f040f
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.
2022-05-05 23:52:35 +02:00

17 lines
468 B
JSON

{
"name": "Discourse",
"image": "discourse/discourse_dev:release",
"workspaceMount": "source=${localWorkspaceFolder}/../..,target=/var/www/discourse,type=bind",
"workspaceFolder": "/var/www/discourse",
"settings": {
"search.followSymlinks": false
},
"postStartCommand": "sudo /sbin/boot",
"extensions": ["rebornix.Ruby"],
"forwardPorts": [9292],
"remoteUser": "discourse",
"remoteEnv": {
"DISCOURSE_DEV_HOSTS": ".githubpreview.dev"
}
}