Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3dd0f451fc | ||
|
|
46313cc290 | ||
|
|
65195e702e | ||
|
|
ec22f42623 | ||
|
|
b43b6382d7 |
+7
-1
@@ -23,4 +23,10 @@ services:
|
||||
- 8091:80
|
||||
volumes:
|
||||
- ./api:/var/www
|
||||
- logs:/var/www/logs
|
||||
- logs:/var/www/logs
|
||||
ui:
|
||||
build: ./ui/
|
||||
ports:
|
||||
- 80:80
|
||||
depends_on:
|
||||
- api
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
install_api_dependence() {
|
||||
cd api/ || exit 2
|
||||
composer install
|
||||
cd ..
|
||||
}
|
||||
|
||||
build_ui() {
|
||||
cd ui/ || exit 2
|
||||
npm run build
|
||||
cd ..
|
||||
}
|
||||
|
||||
test_unit() {
|
||||
pwd
|
||||
cd api/ || exit 2
|
||||
./vendor/bin/codecept run unit
|
||||
cd ..
|
||||
}
|
||||
|
||||
test_api() {
|
||||
cd api/ || exit 2
|
||||
./vendor/bin/codecept run api
|
||||
cd ..
|
||||
}
|
||||
|
||||
composer_run() {
|
||||
docker-compose up -d
|
||||
}
|
||||
|
||||
install_api_dependence && build_ui && test_unit && composer_run && test_api
|
||||
@@ -0,0 +1,3 @@
|
||||
FROM httpd:2.4
|
||||
|
||||
COPY ./public/ /usr/local/apache2/htdocs/
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user