Skip to content

Commit

Permalink
Moved the symlink creation to postdeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Jan 22, 2021
1 parent 27b176b commit 60509be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .ebextensions/01_deploy.config
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ container_commands:
command: "sudo npm run prod"
cwd: "/var/app/staging"

04_link_storage_folder:
command: "php artisan storage:link"
cwd: "/var/app/staging"

05_run_migrations:
04_run_migrations:
command: "php artisan migrate --force"
cwd: "/var/app/staging"
leader_only: true
4 changes: 4 additions & 0 deletions .platform/hooks/postdeploy/x_make_folders_writable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@

sudo chmod -R 777 storage/
sudo chmod -R 777 bootstrap/cache/

# Storage Symlink Creation

php artisan storage:link

0 comments on commit 60509be

Please sign in to comment.