Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
-> Fix composer package issue?
  • Loading branch information
NaysKutzu committed Nov 24, 2024
1 parent 9af1ee3 commit 261e7db
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dockerfiles/mariadb/data
dockerfiles/mariadb/data
.installed
3 changes: 3 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ RUN apt-get update && apt-get install -y \
curl \
zip

RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html

# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

Expand Down
2 changes: 1 addition & 1 deletion backend/public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
define('APP_SOURCECODE_DIR', APP_DIR . 'app');
define('APP_ROUTES_DIR', APP_SOURCECODE_DIR . '/Api');

/**d
/**
* Require the kernel.
*/
require_once APP_DIR . '/boot/kernel.php';
Expand Down
2 changes: 1 addition & 1 deletion backend/storage/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ DATABASE_USER=mythical
DATABASE_PASSWORD="Pizza2007!"
DATABASE_DATABASE=mythicalclient
DATABASE_ENCRYPTION=xchacha20
DATABASE_ENCRYPTION_KEY="zKZ7//AocUD2wCuzjW5rdTbb8FvGBgKTZ8iCATslZ/8="
DATABASE_ENCRYPTION_KEY="Wk2nAV0QHORNEg8/ZQQBeqdW4p2G8lp747RpP6T9yxs="
REDIS_PASSWORD="eufefwefwefw"
12 changes: 10 additions & 2 deletions install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ chmod -R 777 ./
docker exec mythicalclient_backend bash -c "php mythicalclient migrate"

# Reset the encryption key
docker exec mythicalclient_backend bash -c "php mythicalclient keyRegen -force"

# Check if the installation has already been completed
INSTALL_FLAG=".installed"

if [ ! -f "$INSTALL_FLAG" ]; then
# Run the installation steps
touch "$INSTALL_FLAG"
docker exec mythicalclient_backend bash -c "php mythicalclient keyRegen -force"
else
echo "Installation already completed. Skipping..."
fi

0 comments on commit 261e7db

Please sign in to comment.