Skip to content

Commit

Permalink
[OGT-369] Updated deployment script by adding directory for images th…
Browse files Browse the repository at this point in the history
…at are not included in repository.
  • Loading branch information
innc committed Jan 18, 2023
1 parent 34b8ff7 commit 6b5e9af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Envoy.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ function logConsole($env, $message) {
rm -rf {{ $newReleaseDir }}/storage
ln -nfs {{ $appDir }}/storage {{ $newReleaseDir }}/storage

{{ logConsole($env, "Prepare images directory") }}
test -d {{ $appDir }}/images || sudo mkdir -p {{ $appDir }}/images
sudo chown -R www-data:www-data {{ $appDir }}/images

{{ logConsole($env, "Linking images directory") }}
rm -rf {{ $newReleaseDir }}/public/images/static
ln -nfs {{ $appDir }}/images {{ $newReleaseDir }}/public/images/static

{{ logConsole($env, "Linking current release") }}
ln -nfs {{ $newReleaseDir }} {{ $appDir }}/current
@endtask
Expand Down
2 changes: 2 additions & 0 deletions public/images/static/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore

0 comments on commit 6b5e9af

Please sign in to comment.