* test * #48 - deployment * #48 - fixes * #48 - prod assets * #48 - readme for heroku deployment * #48 - fix * #48 - ecs fix * #48 - fix * #48 - fix * #48 - cr fix * #48 - remove predis dependency
This commit is contained in:
24
environment/dev/nginx/nginx.conf
Normal file
24
environment/dev/nginx/nginx.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
server {
|
||||
listen 80 default;
|
||||
server_name localhost;
|
||||
|
||||
client_max_body_size 108M;
|
||||
|
||||
access_log /dev/stdout;
|
||||
|
||||
root /application/public;
|
||||
index index.php;
|
||||
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^.*$ /index.php last;
|
||||
}
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass toby-php:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PHP_VALUE "error_log=/dev/stdout";
|
||||
fastcgi_buffers 16 16k;
|
||||
fastcgi_buffer_size 32k;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
25
environment/dev/php/Dockerfile
Normal file
25
environment/dev/php/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM ghcr.io/blumilksoftware/php:8.1
|
||||
|
||||
ARG XDEBUG_VERSION=3.1.2
|
||||
ARG INSTALL_XDEBUG=false
|
||||
|
||||
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
||||
apk --no-cache add $PHPIZE_DEPS \
|
||||
&& pecl install xdebug-${XDEBUG_VERSION} \
|
||||
&& docker-php-ext-enable xdebug \
|
||||
;fi
|
||||
|
||||
RUN apk add --no-cache pcre-dev $PHPIZE_DEPS \
|
||||
postgresql-dev \
|
||||
zip \
|
||||
libzip-dev \
|
||||
libpng-dev \
|
||||
&& pecl install redis \
|
||||
&& docker-php-ext-install \
|
||||
pdo_pgsql \
|
||||
zip \
|
||||
gd \
|
||||
&& docker-php-ext-configure \
|
||||
zip \
|
||||
&& docker-php-ext-enable \
|
||||
redis
|
9
environment/dev/php/php.ini
Normal file
9
environment/dev/php/php.ini
Normal file
@@ -0,0 +1,9 @@
|
||||
[PHP]
|
||||
memory_limit = 1G
|
||||
|
||||
[xdebug]
|
||||
xdebug.client_host=host.docker.internal
|
||||
xdebug.client_port=9003
|
||||
xdebug.mode=debug
|
||||
xdebug.start_with_request=yes
|
||||
xdebug.log_level=0
|
10
environment/prod/nginx.conf
Normal file
10
environment/prod/nginx.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
if ($http_x_forwarded_proto != 'https') {
|
||||
rewrite ^ https://$host$request_uri? permanent;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri @rewriteapp;
|
||||
}
|
||||
location @rewriteapp {
|
||||
rewrite ^(.*)$ /index.php$1 last;
|
||||
}
|
45
environment/prod/readme.md
Normal file
45
environment/prod/readme.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# Heroku deployment
|
||||
|
||||
## Addons
|
||||
|
||||
* Heroku Postgres
|
||||
* Heroku Redis
|
||||
|
||||
## Dynos
|
||||
|
||||
* web (app)
|
||||
* worker (queue worker)
|
||||
|
||||
## Buildpacks
|
||||
* heroku/php
|
||||
* heroku/nodejs
|
||||
* https://github.com/buyersight/heroku-google-application-credentials-buildpack.git
|
||||
|
||||
## Config vars
|
||||
* APP_DEBUG=false
|
||||
* APP_ENV=production
|
||||
* APP_KEY=
|
||||
* APP_NAME="Toby HR application"
|
||||
* APP_URL=
|
||||
* ASSET_URL=
|
||||
* BROADCAST_DRIVER=log
|
||||
* CACHE_DRIVER=redis
|
||||
* DATABASE_URL=
|
||||
* DB_CONNECTION=pgsql
|
||||
* DB_DATABASE=
|
||||
* DB_HOST=
|
||||
* DB_PORT=
|
||||
* DB_USER=
|
||||
* FILESYSTEM_DISK=local
|
||||
* GOOGLE_CALENDAR_ID=
|
||||
* GOOGLE_CLIENT_ID=
|
||||
* GOOGLE_CLIENT_SECRET=
|
||||
* GOOGLE_CREDENTIALS=
|
||||
* GOOGLE_REDIRECT=
|
||||
* LOG_CHANNEL=errorlog
|
||||
* LOG_LEVEL=info
|
||||
* MAIL_MAILER=log
|
||||
* QUEUE_CONNECTION=redis
|
||||
* REDIS_URL=
|
||||
* SESSION_DRIVER=redis
|
||||
* SESSION_LIFETIME=120
|
Reference in New Issue
Block a user