Compare commits

..

No commits in common. "ae83ec3ff62bd017ef7dfb0547efcf9dcc772242" and "28d15cd26a3a6126df0ed00a3b0eaf4ab6c38893" have entirely different histories.

4 changed files with 2 additions and 31 deletions

View File

@ -1,27 +0,0 @@
---
kind: pipeline
type: exec
name: default
platform:
os: linux
arch: amd64
steps:
- name: Deploy
commands:
- cp -af . /var/www/html/bookstack.octolabs.net
- cd /var/www/html/bookstack.octolabs.net
- composer install --no-dev --optimize-autoloader
- pnpm install
- pnpm run build
- chown -R flycro:www-data /var/www/html/bookstack.octolabs.net
- find /var/www/html/bookstack.octolabs.net/www -type f -exec chmod 664 {} \\;
- find /var/www/html/bookstack.octolabs.net/www -type d -exec chmod 775 {} \\;
- docker -f docker-compose-production.yml down
- docker -f docker-compose-production.yml build
- docker -f docker-compose-production.yml up -d
- docker compose exec php php artisan migrate --force
- docker compose exec php php artisan optimize
- docker compose exec php php artisan storage:link
- pm2 restart ecosystem.config.js

View File

@ -1,6 +1,6 @@
FROM dunglas/frankenphp
RUN install-php-extensions pcntl pdo_pgsql pgsql
RUN install-php-extensions pcntl
#ENV SERVER_NAME=bookstack.octolabs.net
ENV SERVER_NAME=:80

View File

@ -1,4 +1,3 @@
services:
php:
image: dunglas/frankenphp
@ -10,7 +9,6 @@ services:
networks:
- laravel
volumes:
- '.:/app'
- caddy_data:/data
- caddy_config:/config
redis:

View File

@ -35,6 +35,7 @@ Route::prefix('api/v1')->group(function () {
Route::get('/deadlines', [DeadlineController::class, 'index']);
Route::post('/deadlines', [DeadlineController::class, 'createDeadline']);
Route::put('/user-deadlines/{deadlineId}', [DeadlineController::class, 'updateUserDeadline']);
});
Route::post('/admin/add-total-votes-all', [VoteController::class, 'addTotalVotesAll']);
@ -45,4 +46,3 @@ Route::prefix('api/v1')->group(function () {
Route::post('upload', [UploadController::class, 'image'])->name('upload.image');
});
});
});