Skip to content

Commit

Permalink
Allow deploy of either legacy or reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
Iain C Docherty committed Feb 15, 2016
1 parent 8f59c1f commit fe7c00f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/deploy.pl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ sub run {
);

# Update the index file to point to the new store.
my $index_file = $index_file;
my $index = do {
open my $fh, '<', $index_file;
local $/;
Expand All @@ -144,6 +143,9 @@ sub run {
print {$fh} $index;
close $fh;

unlink('/data/Lacuna-Server/var/www/public/index.html');
symlink($index, '/data/Lacuna-Server/var/www/public/index.html');

my $allfiles = $s3bucket->list_all({prefix => $prefix.'/'});
for my $key (@{ $allfiles->{keys} }) {
my $file = $key->{key};
Expand Down

0 comments on commit fe7c00f

Please sign in to comment.