Skip to content

Commit

Permalink
+ Working
Browse files Browse the repository at this point in the history
  • Loading branch information
James-jamames committed Aug 15, 2023
1 parent 9b9bf9b commit 70cb0c8
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 7 deletions.
2 changes: 2 additions & 0 deletions docker/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local

RUN usermod -u 1000 www-data && \
chmod +x /var/www/post_deploy.sh && \
chown www-data:www-data /var/www/ && \
chown -R www-data:www-data /var/www/server/* && \
composer install && \
php artisan config:cache && \
php artisan route:cache && \
Expand Down
4 changes: 3 additions & 1 deletion docker/development/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ services:
ports:
- "8010:80" # Mapeie a porta do host para a porta do Apache dentro do contêiner
volumes:
- ../../server:/var/www/server # Mapeie o diretório do seu projeto Laravel para o contêiner
- ../../server:/var/www/server # Mapeie o diretório do seu projeto Laravel para o contêiner
- ../../server/storage:/var/www/server/storage
- ../../server/bootstrap:/var/www/server/bootstraps
8 changes: 6 additions & 2 deletions docker/development/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ else
echo "Directory ./ssh does not exist!"
fi

docker-compose build
cd ../../server
composer install
cd ../docker/development

docker-compose up -d
docker compose build

docker compose up -d
5 changes: 1 addition & 4 deletions docker/development/post_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ php artisan optimize:clear
# start the application
php-fpm -D && nginx -g "daemon off;"

#Change permissions
chown www-data:www-data /var/www/ && \
chown -R www-data:www-data /var/www/server/* && \
chmod -R 775 /var/www/server/storage && \
chmod -R 775 /var/www/server/bootstrap/cache && \
chown www-data:www-data /var/www/server/bootstrap/cache && \
chown www-data:www-data /var/www/server/storage
chown www-data:www-data /var/www/server/storage/*
Empty file modified server/storage/app/.gitignore
100644 → 100755
Empty file.
Empty file modified server/storage/app/public/.gitignore
100644 → 100755
Empty file.
Empty file modified server/storage/framework/.gitignore
100644 → 100755
Empty file.
Empty file modified server/storage/framework/cache/.gitignore
100644 → 100755
Empty file.
Empty file modified server/storage/framework/cache/data/.gitignore
100644 → 100755
Empty file.
Empty file modified server/storage/framework/sessions/.gitignore
100644 → 100755
Empty file.
Empty file modified server/storage/framework/testing/.gitignore
100644 → 100755
Empty file.
Empty file modified server/storage/framework/views/.gitignore
100644 → 100755
Empty file.

0 comments on commit 70cb0c8

Please sign in to comment.