Ver código fonte

Added run migrations and seeding on container creation.

tyson 8 meses atrás
pai
commit
277b1c5424
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      .devcontainer/devcontainer.json

+ 3 - 1
.devcontainer/devcontainer.json

@@ -13,7 +13,9 @@
 	"forwardPorts": [],
 
 	// Use 'postCreateCommand' to run commands after the container is created.
-    "postStartCommand": "git config --global --add safe.directory /var/www/html && npm install && composer install && apachectl start",
+    "postCreateCommand": "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",
 
 	// Configure tool-specific properties.
   "customizations" : {