4 Commits

Author SHA1 Message Date
blu
309663284b bump oi app version 2024-09-28 02:07:14 +02:00
blu
1b8efc107b update .env.sample 2024-09-12 12:02:23 +02:00
blu
a26d3ed655 add run_migrations command in abra.sh 2024-09-09 14:57:49 +02:00
blu
ded68a90d1 bump app version to 1.0.11 - for context, see this: coop-cloud/organising#638 2024-09-09 14:57:23 +02:00
3 changed files with 25 additions and 17 deletions

View File

@ -41,16 +41,21 @@ QUEUE_DRIVER=database
#MAIL_PASSWORD="SMTP Password"
#MAIL_ENCRYPTION=tls
COMPANY_NAME=""
COMPANY_REPRESENTATIVES=""
COMPANY_STREET=""
COMPANY_BUILDING=""
COMPANY_POSTALCODE=""
COMPANY_CITY=""
COMPANY_COUNTRY=""
COMPANY_TELEPHONE=""
COMPANY_EMAIL=""
INSTANCE_REPO="https://codeberg.org/eotl/open-inventory"
INSTANCE_NAME=""
INSTANCE_DESCRIPTION=""
INSTANCE_REPRESENTATIVES=""
INSTANCE_ADDRESS=""
INSTANCE_POSTALCODE=""
INSTANCE_CITY=""
INSTANCE_COUNTRY=""
INSTANCE_TELEPHONE=""
INSTANCE_EMAIL=""
#EOTL_PATH_DATA="/home/eotl/data"
#EOTL_URL_DISPATCH="http://localhost:8082"
#EOTL_URL_SEXTANT="http://localhost:8081"
EOTL_URL_DISPATCH="http://localhost:8082"
EOTL_URL_SEXTANT="http://localhost:8081"
OSMR_NOMINATIM_URL=https://nominatim.openstreetmap.org/search.php
IDENTIFICATOR_URL=https://eotl.link
IDENTIFICATOR_USERNAME=
IDENTIFICATOR_PASSWORD=

View File

@ -14,12 +14,16 @@ initial_setup() {
# clear config cache, where a previous invalid APP_KEY might still be present
clear_cache
run_migrations
create_first_admin_user
}
run_migrations() {
echo "DB migrations status:"
php artisan migrate:status
echo "Starting DB migrations..."
php artisan migrate
create_first_admin_user
}
clear_cache() {

View File

@ -3,7 +3,7 @@ version: '3.8'
services:
app:
# Dockerfile here: https://codeberg.org/eotl/open-inventory/src/branch/main/docker/prod/Dockerfile
image: codeberg.org/eotl/open-inventory:0.0.10
image: codeberg.org/eotl/open-inventory:latest
depends_on:
- db
networks:
@ -32,8 +32,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=1.0.0+0.0.11"
- "coop-cloud.${STACK_NAME}.version=1.0.12"
db:
image: mariadb:10.5
init: true