Skip to content

Commit

Permalink
yii-starter-kit#654. Update composer install config and fix .env file.
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredleo committed Feb 27, 2019
1 parent 6f3dcaf commit fa8d9ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

composer install && console/yii app/setup --interactive=0
cp .env.dist .env && composer install && console/yii app/setup --interactive=0
30 changes: 0 additions & 30 deletions pwd-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,13 @@ services:
- starter_kit_app:/data/git/repos/yii2-starter-kit
- mysql_config:/data/git/repos/yii2-starter-kit/docker/mysql
- nginx_config:/data/git/repos/yii2-starter-kit/docker/nginx
command:
- cp .env.dist .env

app:
image: alfredleo/starter_kit_app:secondtry
volumes:
- starter_kit_app:/app
command:
- ./install.sh
environment:
- YII_DEBUG = true
- YII_ENV = dev
- APP_MAINTENANCE = 0
- LINK_ASSETS=true
- DB_DSN = mysql:host=db;port=3306;dbname=yii2-starter-kit
- DB_USERNAME = ysk_dbu
- DB_PASSWORD = ysk_pass
- DB_TABLE_PREFIX =
- DB_CHARSET = utf8mb4
- TEST_DB_DSN = mysql:host=db;port=3306;dbname=yii2-starter-kit-test
- TEST_DB_USERNAME = root
- TEST_DB_PASSWORD = root
- API_HOST_INFO = http://api.yii2-starter-kit.localhost
- FRONTEND_HOST_INFO = http://yii2-starter-kit.localhost
- BACKEND_HOST_INFO = http://backend.yii2-starter-kit.localhost
- STORAGE_HOST_INFO = http://storage.yii2-starter-kit.localhost
- SMTP_HOST = mailcatcher
- SMTP_PORT = 1025
- FRONTEND_COOKIE_VALIDATION_KEY = xVLgMMktRpRa3xS-jeTITuqnqILulB_W
- BACKEND_COOKIE_VALIDATION_KEY = loub3h7NsMzj3EqxjuF0YN3zz0-xpC6r
- ADMIN_EMAIL = [email protected]
- ROBOT_EMAIL = [email protected]
- GITHUB_CLIENT_ID = your-client-id
- GITHUB_CLIENT_SECRET = your-client-secret
- GLIDE_SIGN_KEY = UTozT23Hqa2gZylnbBgfszZXYCARMpK7
- GLIDE_MAX_IMAGE_SIZE = 4000000
- COMPOSE_CONVERT_WINDOWS_PATHS=1
depends_on:
- source
- db
Expand Down

0 comments on commit fa8d9ee

Please sign in to comment.