commit
1f4a2c5061
@ -0,0 +1,43 @@
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: build to production
|
||||
commands:
|
||||
- sudo cp /home/administrator/apps/willaengine/composer-prod.json .
|
||||
- docker build -t registry.willaspace.com/willaspace/willaengine:latest --build-arg COMPOSER_FILE_NAME=composer-prod .
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
- name: deploy to production
|
||||
commands:
|
||||
- cd /home/administrator/apps/willaengine/ ; docker-compose up -d
|
||||
- docker exec willaengine bash -c "COMPOSER=composer-prod.json composer update"
|
||||
- docker exec willaengine service cron start
|
||||
- docker exec willaengine php artisan config:cache
|
||||
- docker exec willaengine php artisan route:cache
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
- name: build to staging
|
||||
commands:
|
||||
- docker build -t registry.willaspace.com/willaspace/willaengine-staging:latest --build-arg COMPOSER_FILE_NAME=composer-staging -f Dockerfile.staging .
|
||||
- docker build -t registry.willaspace.com/willaspace/willaengine-staging-nginx:latest -f Dockerfile.nginx .
|
||||
when:
|
||||
branch:
|
||||
- dev
|
||||
|
||||
- name: deploy to staging
|
||||
commands:
|
||||
- cd /apps/willaengine-staging/ ; docker-compose up -d
|
||||
when:
|
||||
branch:
|
||||
- dev
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
- dev
|
@ -0,0 +1,3 @@
|
||||
FROM nginx:1.21.1
|
||||
|
||||
COPY public /var/www/html/public
|
@ -0,0 +1,6 @@
|
||||
FROM fsaravi/standard-laravel:7.4
|
||||
|
||||
WORKDIR /var/www/html
|
||||
RUN php artisan morphmap:cache
|
||||
|
||||
|
@ -0,0 +1,163 @@
|
||||
{
|
||||
"name": "laravel/laravel",
|
||||
"type": "project",
|
||||
"description": "The Laravel Framework.",
|
||||
"keywords": [
|
||||
"framework",
|
||||
"laravel"
|
||||
],
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": "^7.4",
|
||||
"coraxster/flysystem-aws-s3-v3-minio": "^1.0",
|
||||
"fideloper/proxy": "^4.0",
|
||||
"laravel/framework": "^8.0",
|
||||
"laravel/passport": "^10",
|
||||
"laravel/tinker": "^2.0",
|
||||
"maatwebsite/excel": "^3.1",
|
||||
"kalnoy/nestedset": "^6.0",
|
||||
"sentry/sentry-laravel": "^2.3",
|
||||
"spatie/laravel-medialibrary": "^8.0.0",
|
||||
"io-developer/php-whois": "^4.0",
|
||||
"silber/bouncer": "v1.0.0-rc.10",
|
||||
"wm/blog": "dev-master",
|
||||
"wm/common": "dev-master",
|
||||
"wm/core": "dev-master",
|
||||
"wm/crm": "dev-master",
|
||||
"wm/portfolio": "dev-master",
|
||||
"wm/product": "dev-master",
|
||||
"wm/service": "dev-master",
|
||||
"wm/store": "dev-master",
|
||||
"wm/finance": "dev-master",
|
||||
"wm/admin": "dev-master",
|
||||
"wm/web-builder": "dev-master",
|
||||
"wm/app-management": "dev-master",
|
||||
"wm/notification": "dev-master",
|
||||
"wm/roll-call": "dev-master",
|
||||
"wm/lms": "dev-master",
|
||||
"wm/service-store": "dev-master",
|
||||
"wm/contact-us": "dev-master",
|
||||
"zircote/swagger-php": "^3.0"
|
||||
},
|
||||
"provide": {
|
||||
"ext-imagick": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"facade/ignition": "^2.3.6",
|
||||
"fzaninotto/faker": "^1.4",
|
||||
"mockery/mockery": "^1.0",
|
||||
"nunomaduro/collision": "^5.0",
|
||||
"phpunit/phpunit": "^9.0"
|
||||
},
|
||||
"config": {
|
||||
"optimize-autoloader": true,
|
||||
"preferred-install": "dist",
|
||||
"sort-packages": true
|
||||
},
|
||||
"extra": {
|
||||
"laravel": {
|
||||
"dont-discover": []
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"App\\": "app/",
|
||||
"Modules\\": "Modules/"
|
||||
},
|
||||
"classmap": [
|
||||
"database/seeds",
|
||||
"database/factories"
|
||||
]
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true,
|
||||
"scripts": {
|
||||
"post-autoload-dump": [
|
||||
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
||||
"@php artisan package:discover --ansi",
|
||||
"@php artisan morphmap:cache"
|
||||
],
|
||||
"post-root-package-install": [
|
||||
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
||||
],
|
||||
"post-create-project-cmd": [
|
||||
"@php artisan key:generate --ansi"
|
||||
]
|
||||
},
|
||||
|
||||
"repositories": [
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/crm.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/common.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/core.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/blog.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/portfolio.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/product.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/service.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/store.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/notification.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/roll-call.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/app-management.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/web-builder.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/finance.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/service-store.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/admin.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/lms.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/contact-us.git"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,164 @@
|
||||
{
|
||||
"name": "laravel/laravel",
|
||||
"type": "project",
|
||||
"description": "The Laravel Framework.",
|
||||
"keywords": [
|
||||
"framework",
|
||||
"laravel"
|
||||
],
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": "^7.4",
|
||||
"coraxster/flysystem-aws-s3-v3-minio": "^1.0",
|
||||
"fideloper/proxy": "^4.0",
|
||||
"laravel/framework": "^8.0",
|
||||
"laravel/passport": "^10",
|
||||
"laravel/tinker": "^2.0",
|
||||
"maatwebsite/excel": "^3.1",
|
||||
"kalnoy/nestedset": "^6.0",
|
||||
"sentry/sentry-laravel": "^2.3",
|
||||
"spatie/laravel-medialibrary": "^8.0.0",
|
||||
"io-developer/php-whois": "^4.0",
|
||||
"silber/bouncer": "v1.0.0-rc.10",
|
||||
"wm/blog": "dev-master",
|
||||
"wm/common": "dev-master",
|
||||
"wm/core": "dev-master",
|
||||
"wm/crm": "dev-master",
|
||||
"wm/portfolio": "dev-master",
|
||||
"wm/product": "dev-master",
|
||||
"wm/service": "dev-master",
|
||||
"wm/store": "dev-master",
|
||||
"wm/finance": "dev-master",
|
||||
"wm/admin": "dev-master",
|
||||
"wm/web-builder": "dev-master",
|
||||
"wm/app-management": "dev-master",
|
||||
"wm/notification": "dev-master",
|
||||
"wm/roll-call": "dev-master",
|
||||
"wm/lms": "dev-master",
|
||||
"wm/service-store": "dev-master",
|
||||
"wm/contact-us": "dev-master",
|
||||
"zircote/swagger-php": "^3.0"
|
||||
},
|
||||
"provide": {
|
||||
"ext-imagick": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"facade/ignition": "^2.3.6",
|
||||
"fzaninotto/faker": "^1.4",
|
||||
"mockery/mockery": "^1.0",
|
||||
"nunomaduro/collision": "^5.0",
|
||||
"phpunit/phpunit": "^9.0"
|
||||
},
|
||||
"config": {
|
||||
"optimize-autoloader": true,
|
||||
"preferred-install": "dist",
|
||||
"sort-packages": true
|
||||
},
|
||||
"extra": {
|
||||
"laravel": {
|
||||
"dont-discover": []
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"App\\": "app/",
|
||||
"Modules\\": "Modules/"
|
||||
},
|
||||
"classmap": [
|
||||
"database/seeds",
|
||||
"database/factories"
|
||||
]
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true,
|
||||
"scripts": {
|
||||
"post-autoload-dump": [
|
||||
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
||||
"@php artisan package:discover --ansi",
|
||||
"@php artisan morphmap:cache"
|
||||
],
|
||||
"post-root-package-install": [
|
||||
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
||||
],
|
||||
"post-create-project-cmd": [
|
||||
"@php artisan key:generate --ansi"
|
||||
]
|
||||
},
|
||||
|
||||
"repositories": [
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/crm.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/common.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/core.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/blog.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/portfolio.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/product.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/service.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/store.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/notification.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/roll-call.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/app-management.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/web-builder.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/finance.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/service-store.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/admin.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/lms.git"
|
||||
},
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "git@git.willaspace.com:WillaEngine-Project/contact-us.git"
|
||||
}
|
||||
|
||||
]
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,58 @@
|
||||
const mix = require('laravel-mix');
|
||||
const path = require('path');
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mix Asset Management
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Mix provides a clean, fluent API for defining some Webpack build steps
|
||||
| for your Laravel application. By default, we are compiling the Sass
|
||||
| file for the application as well as bundling up all the JS files.
|
||||
|
|
||||
*/
|
||||
mix.webpackConfig({
|
||||
resolve: {
|
||||
extensions: ["*", ".js", ".jsx", ".vue", ".ts", ".tsx", '.json', '.d.ts'],
|
||||
alias: {
|
||||
'@JS': path.resolve(__dirname, 'resources/js'),
|
||||
'@Home': path.resolve(__dirname, 'resources/js/Home'),
|
||||
},
|
||||
},
|
||||
output: {
|
||||
chunkFilename: 'js/vue/chunks/[name].[chunkhash].js',
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
loader: "ts-loader",
|
||||
options: { appendTsSuffixTo: [/\.vue$/] },
|
||||
exclude: /node_modules/
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
mix.js('resources/js/Home/app.js', 'public/js/vue/Home').vue({version: 2});
|
||||
|
||||
require('./modules/wm-core/webpack.mix');
|
||||
require('./modules/wm-common/webpack.mix');
|
||||
require('./modules/wm-crm/webpack.mix');
|
||||
require('./modules/wm-blog/webpack.mix');
|
||||
require('./modules/wm-portfolio/webpack.mix');
|
||||
require('./modules/wm-product/webpack.mix');
|
||||
require('./modules/wm-service/webpack.mix');
|
||||
require('./modules/wm-store/webpack.mix');
|
||||
require('./modules/wm-admin/webpack.mix');
|
||||
require('./modules/wm-notification/webpack.mix');
|
||||
require('./modules/wm-roll-call/webpack.mix');
|
||||
require('./modules/wm-finance/webpack.mix');
|
||||
require('./modules/wm-app-management/webpack.mix');
|
||||
require('./modules/wm-web-builder/webpack.mix');
|
||||
require('./modules/wm-lms/webpack.mix');
|
||||
require('./modules/wm-service-store/webpack.mix');
|
||||
require('./modules/wm-contact-us/webpack.mix');
|
||||
// require('./modules/wm-warehouse/webpack.mix');
|
||||
// require('./modules/wm-reservation/webpack.mix');
|
||||
|
||||
mix.version();
|
@ -0,0 +1,45 @@
|
||||
const mix = require('laravel-mix');
|
||||
const path = require('path');
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mix Asset Management
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Mix provides a clean, fluent API for defining some Webpack build steps
|
||||
| for your Laravel application. By default, we are compiling the Sass
|
||||
| file for the application as well as bundling up all the JS files.
|
||||
|
|
||||
*/
|
||||
mix.webpackConfig({
|
||||
resolve: {
|
||||
extensions: ["*", ".js", ".jsx", ".vue", ".ts", ".tsx", '.json', '.d.ts'],
|
||||
alias: {
|
||||
'@JS': path.resolve(__dirname, 'resources/js'),
|
||||
'@Home': path.resolve(__dirname, 'resources/js/Home'),
|
||||
},
|
||||
},
|
||||
output: {
|
||||
chunkFilename: 'js/vue/chunks/[name].[chunkhash].js',
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
loader: "ts-loader",
|
||||
options: { appendTsSuffixTo: [/\.vue$/] },
|
||||
exclude: /node_modules/
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
mix.js('resources/js/Home/app.js', 'public/js/vue/Home').vue({version: 2});
|
||||
|
||||
require('./vendor/wm/core/webpack.mix');
|
||||
require('./vendor/wm/common/webpack.mix');
|
||||
require('./vendor/wm/crm/webpack.mix');
|
||||
require('./vendor/wm/blog/webpack.mix');
|
||||
// require('./vendor/wm/warehouse/webpack.mix');
|
||||
// require('./vendor/wm/reservation/webpack.mix');
|
||||
|
||||
mix.version();
|
Loading…
Reference in new issue