|
@@ -2,12 +2,13 @@ if [ ! -f ./.devcontainer/first-start.flag ]; then
|
|
|
echo "Running first-start commands..." && \
|
|
echo "Running first-start commands..." && \
|
|
|
# Add your one-time commands here
|
|
# Add your one-time commands here
|
|
|
cd /var/www/html && \
|
|
cd /var/www/html && \
|
|
|
- npm install && \
|
|
|
|
|
- composer install && \
|
|
|
|
|
|
|
+
|
|
|
chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache && \
|
|
chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache && \
|
|
|
find /var/www/html -type f -exec chmod 644 {} \; && \
|
|
find /var/www/html -type f -exec chmod 644 {} \; && \
|
|
|
find /var/www/html -type d -exec chmod 755 {} \; && \
|
|
find /var/www/html -type d -exec chmod 755 {} \; && \
|
|
|
chmod -R 775 /var/www/html/storage/logs /var/www/html/storage/framework && \
|
|
chmod -R 775 /var/www/html/storage/logs /var/www/html/storage/framework && \
|
|
|
|
|
+ npm install && \
|
|
|
|
|
+ composer install && \
|
|
|
php artisan migrate --force && \
|
|
php artisan migrate --force && \
|
|
|
php artisan db:seed && \
|
|
php artisan db:seed && \
|
|
|
touch ./.devcontainer/first-start.flag
|
|
touch ./.devcontainer/first-start.flag
|