Sfoglia il codice sorgente

add db migrate

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
pull/1/merge
Bo-Yi Wu 6 anni fa
parent
commit
58dee45fa7
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: F84B2110C500B1F
2 ha cambiato i file con 7 aggiunte e 6 eliminazioni
  1. +4
    -3
      .drone.yml
  2. +3
    -3
      .env.example

+ 4
- 3
.drone.yml Vedi 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 Vedi 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

Caricamento…
Annulla
Salva