File tree 4 files changed +3
-10
lines changed
4 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ if [ ! -f /.inited ]; then
14
14
echo " Since it is the first launch, we will install project dependencies and seed the database."
15
15
16
16
composer install
17
- php artisan db:seed --force
18
- php artisan migrate --force
17
+ php artisan migrate:fresh --seed --force
19
18
20
19
touch /.inited
21
20
fi
Original file line number Diff line number Diff line change 4
4
env >> /var/www/.env
5
5
php-fpm7.1 -D
6
6
cd /var/www/
7
- php artisan db:seed --force
8
- php artisan migrate --force
7
+ php artisan migrate:fresh --seed --force
9
8
nginx -g " daemon off;"
Original file line number Diff line number Diff line change 1
- DROP SCHEMA IF EXISTS public CASCADE;
2
-
3
- CREATE SCHEMA public ;
4
-
5
1
DROP TABLE IF EXISTS users CASCADE;
6
2
DROP TABLE IF EXISTS moderators CASCADE;
7
3
DROP TABLE IF EXISTS messages CASCADE;
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ IMAGE_NAME=lbaw1763
10
10
docker exec lbaw_php composer install # Ensure that dependencies are available
11
11
docker exec lbaw_php php artisan clear-compiled
12
12
docker exec lbaw_php php artisan optimize
13
- docker exec lbaw_php php artisan db:seed --force
14
- docker exec lbaw_php php artisan migrate --force
13
+ docker exec lbaw_php php artisan migrate:fresh --seed --force
15
14
16
15
docker build -t $DOCKER_USERNAME /$IMAGE_NAME .
17
16
docker push $DOCKER_USERNAME /$IMAGE_NAME
You can’t perform that action at this time.
0 commit comments