瀏覽代碼

changed postCreateCommand to InitializeCommand

tyson 9 月之前
父節點
當前提交
c4e64394d9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .devcontainer/devcontainer.json

+ 2 - 2
.devcontainer/devcontainer.json

@@ -12,8 +12,8 @@
 	// For use with PHP or Apache (e.g.php -S localhost:8080 or apache2ctl start)
 	"forwardPorts": [],
 
-	// Use 'postCreateCommand' to run commands after the container is created.
-    "postCreateCommand": "php artisan migrate --force && php artisan db:seed",
+
+    "initializeCommand": "php artisan migrate --force && php artisan db:seed",
 
     "postStartCommand": "git config --global --add safe.directory /var/www/html && npm install && composer install && npm run build && apachectl start",