File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : ' 3.7'
2
+ services :
3
+ sut :
4
+ build : .
5
+ command : /root/test/test-command.sh
6
+ environment :
7
+ - STARTUP_COMMAND1=php --version
8
+ - STARTUP_COMMAND2=composer --version
9
+ - STARTUP_COMMAND3=chmod +x /root/test/test-command.sh
10
+ volumes :
11
+ - ./test:/root/test
Original file line number Diff line number Diff line change 5
5
6
6
# make sure Laravel can write its own files
7
7
mkdir -p /opt/app/storage/logs/
8
+ mkdir -p /opt/app/bootstrap/cache
9
+
8
10
touch /opt/app/storage/logs/laravel.log
9
11
touch /opt/app/storage/logs/worker.log
10
12
chown www-data:www-data -R /opt/app/storage
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -e
3
+
4
+ # clean the app folder
5
+ cd /opt/
6
+ rm -rf app
7
+
8
+ # create laravel project into app
9
+ composer create-project --prefer-dist laravel/laravel app
10
+
11
+ # start services in the background
12
+ runsvdir /etc/service &
13
+
14
+ # check if the services are available
15
+ wait-for-it.sh --host=localhost --port=8080
You can’t perform that action at this time.
0 commit comments