Skip to content
Snippets Groups Projects
Commit 3e92d0f4 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Fixed useragents.sqlite in docker-compose file

parent bb5f1cdf
No related branches found
No related tags found
2 merge requests!1597Development,!1593Resolve "Oops Error"
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
# This commands will help initialize data for docker-compose setup # This commands will help initialize data for docker-compose setup
# Its supposed to run in a php docker image # Its supposed to run in a php docker image
docker-php-ext-install pdo pdo_mysql
if [ ! -f "/data/.env" ]; then if [ ! -f "/data/.env" ]; then
cp /data/.env.example /data/.env cp /data/.env.example /data/.env
...@@ -16,10 +15,14 @@ if [ ! -d "/data/storage/logs/metager" ]; then ...@@ -16,10 +15,14 @@ if [ ! -d "/data/storage/logs/metager" ]; then
mkdir -p /data/storage/logs/metager mkdir -p /data/storage/logs/metager
fi fi
touch /data/database/useragents.sqlite cp /data/database/useragents.sqlite.example /data/database/useragents.sqlite
chmod -R go+w storage bootstrap/cache chmod -R go+w storage bootstrap/cache
docker-php-ext-install pdo pdo_mysql
php artisan wait:db php artisan wait:db
php artisan migrate rm /data/database/useragents.sqlite
touch /data/database/useragents.sqlite
php artisan migrate:fresh
php artisan db:seed php artisan db:seed
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment