Browse Source

add db migrate

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
pull/1/merge
Bo-Yi Wu 4 years ago
parent
commit
58dee45fa7
No known key found for this signature in database GPG Key ID: F84B2110C500B1F
2 changed files with 7 additions and 6 deletions
  1. +4
    -3
      .drone.yml
  2. +3
    -3
      .env.example

+ 4
- 3
.drone.yml View File

@ -25,6 +25,7 @@ pipeline:
- cp .env.example .env
- composer install --prefer-dist
- php artisan key:generate
- php artisan migrate
- ./vendor/bin/phpunit
services:
@ -37,6 +38,6 @@ services:
postgres:
image: postgres:9.5.5
environment:
- POSTGRES_DB=test
- POSTGRES_USER=test
- POSTGRES_PASSWORD=
- POSTGRES_DB=homestead
- POSTGRES_USER=homestead
- POSTGRES_PASSWORD=secret

+ 3
- 3
.env.example View File

@ -5,9 +5,9 @@ APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_CONNECTION=pgsql
DB_HOST=postgres
DB_PORT=5432
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

Loading…
Cancel
Save