Merge pull request 'Deployment.' (#14) from deployment into master

Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
2021-04-19 11:14:28 +02:00
20 changed files with 78634 additions and 1 deletions
+6
View File
@@ -24,3 +24,9 @@ services:
volumes:
- ./api:/var/www
- logs:/var/www/logs
ui:
build: ./ui/
ports:
- 80:80
depends_on:
- api
+32
View File
@@ -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
+3
View File
@@ -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.