Skip to content

Commit

Permalink
Better deploy script that does not actually fail
Browse files Browse the repository at this point in the history
  • Loading branch information
palmertab committed Nov 14, 2023
1 parent 63a2e3b commit cd4a12a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doc/utility/deploy
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/usr/bin/perl -w

use DateTime;

my @prod_servers = ("tabroom-www1", "tabroom-www2");
my $now = DateTime->now;
my $now = `/bin/date`;

foreach my $server (@prod_servers) {
print "\n\nDEPLOYING MASON TO ".$server." at $now \n\n";
Expand All @@ -14,7 +12,7 @@ foreach my $server (@prod_servers) {
print "\n\n";

print "\n\nDEPLOYING INDEXCARDS TO ".$server." at $now \n\n";
my $result = `ssh tabroom\@$server \"cd /www/indexcards; git pull" `;
$result = `ssh tabroom\@$server \"cd /www/indexcards; git pull" `;
chomp $result;

if ($result eq "Already up to date.") {
Expand Down

0 comments on commit cd4a12a

Please sign in to comment.