Skip to content

Commit

Permalink
Add a distribution shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
José Benavente committed Mar 20, 2022
1 parent c316117 commit e391118
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions distribute.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

readonly DIST=/home/deploy/distribute

bundle exec rake

[ -e $DIST/rva/rva_cars.zip ] && rm -r $DIST/rva/rva_cars.zip
[ -e $DIST/rva/rva_tracks.zip ] && rm -r $DIST/rva/rva_tracks.zip
[ -e $DIST/rva/packages.json ] && rm $DIST/packages.json

mv rva_cars/rva_cars.zip $DIST/rva
mv rva_tracks/rva_tracks.zip $DIST/rva
mv packages.json $DIST/packages.json

0 comments on commit e391118

Please sign in to comment.