This repository was archived by the owner on Apr 1, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +57
-1
lines changed Expand file tree Collapse file tree 2 files changed +57
-1
lines changed Original file line number Diff line number Diff line change
1
+ APP_NAME=Laravel
2
+ APP_ENV=testing
3
+ APP_KEY=base64:pE3IKKotAdEhrvI9OfUlDsvtlVuzlxZGkiFGbgI7s9I=
4
+ APP_DEBUG=false
5
+ APP_URL=http://localhost
6
+
7
+ LOG_CHANNEL=stack
8
+
9
+ DB_CONNECTION=mysql
10
+ DB_HOST=127.0.0.1
11
+ DB_PORT=3306
12
+ DB_DATABASE=homestead
13
+ DB_USERNAME=homestead
14
+ DB_PASSWORD=secret
15
+
16
+ BROADCAST_DRIVER=log
17
+ CACHE_DRIVER=file
18
+ SESSION_DRIVER=file
19
+ SESSION_LIFETIME=120
20
+ QUEUE_DRIVER=sync
21
+
22
+ REDIS_HOST=127.0.0.1
23
+ REDIS_PASSWORD=null
24
+ REDIS_PORT=6379
25
+
26
+ MAIL_DRIVER=smtp
27
+ MAIL_HOST=smtp.mailtrap.io
28
+ MAIL_PORT=2525
29
+ MAIL_USERNAME=null
30
+ MAIL_PASSWORD=null
31
+ MAIL_ENCRYPTION=null
32
+
33
+ PUSHER_APP_ID=
34
+ PUSHER_APP_KEY=
35
+ PUSHER_APP_SECRET=
36
+ PUSHER_APP_CLUSTER=mt1
37
+
38
+ MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
39
+ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
40
+
41
+ # API_URL=
42
+ # API_USERNAME=
43
+ # API_PASSWORD=
Original file line number Diff line number Diff line change @@ -5,12 +5,25 @@ language: minimal
5
5
services :
6
6
- docker
7
7
8
+ cache :
9
+ directories :
10
+ - $HOME/docker
11
+
12
+ before_install :
13
+ - if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi
14
+ - cp .env.travis .env
15
+
8
16
install :
9
- - docker-compose up -d prod
17
+ - docker-compose up -d --build prod
10
18
11
19
script :
12
20
- curl --silent --fail --show-error http://127.0.0.1:88
13
21
14
22
after_failure :
15
23
- docker-compose exec prod bash -c "tail /var/log/nginx/access.log"
16
24
- docker-compose exec prod bash -c "tail /var/log/nginx/error.log"
25
+
26
+ before_cache :
27
+ - >
28
+ mkdir -p $HOME/docker && docker images -a --filter='dangling=false' --format '{{.Repository}}:{{.Tag}} {{.ID}}'
29
+ | xargs -n 2 -t sh -c 'test -e $HOME/docker/$1.tar.gz || docker save $0 | gzip -2 > $HOME/docker/$1.tar.gz'
You can’t perform that action at this time.
0 commit comments