Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Remove random upload path (close snowplow#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuwy committed Jan 9, 2017
1 parent 59d1179 commit e333d60
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ module.exports = function(grunt) {
files: [
{
src: ["dist/sp.js"],
dest: "<%= aws.uploadPath %>"
dest: "<%= pkg.version %>/sp.js"
}
]
},
Expand All @@ -237,7 +237,7 @@ module.exports = function(grunt) {
files: [
{
src: ["dist/sp.js"],
dest: "<%= aws.uploadPath %>"
dest: "<%= pkg.pinnedVersion %>/sp.js"
}
]
}
Expand All @@ -252,14 +252,14 @@ module.exports = function(grunt) {
not_pinned: {
options: {
invalidations: [
'/<%= aws.uploadPath %>'
'/<%= pkg.version %>/sp.js'
]
}
},
pinned: {
options: {
invalidations: [
'/<%= aws.uploadPath %>'
'/<%= pkg.pinnedVersion %>/sp.js'
]
}
}
Expand Down
3 changes: 1 addition & 2 deletions aws.sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
"secret": "ADD HERE",
"bucket": "ADD HERE",
"region": "ADD HERE",
"distribution": "ADD HERE",
"uploadPath": "ADD HERE"
"distribution": "ADD HERE"
}
6 changes: 1 addition & 5 deletions vagrant/push/publish-tracker.bash
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,10 @@ then
read -e -s secret
echo "Please enter your AWS bucket"
read -e -s bucket
echo "Please enter your AWS region"
read -e -s region
echo "Please enter your AWS distribution"
read -e -s distribution
echo "Please enter your AWS bucket key-path (eg. 'test/b7IkgoKFWXLNbFk.js')"
read -e -s uploadPath

echo "{\"key\":\"$key\",\"secret\":\"$secret\",\"bucket\":\"$bucket\",\"distribution\":\"$distribution\",\"region\":\"$region\",\"uploadPath\":\"$uploadPath\"}" > aws.json
echo "{\"key\":\"$key\",\"secret\":\"$secret\",\"bucket\":\"$bucket\",\"distribution\":\"$distribution\"}" > aws.json

vagrant ssh -c "cd /vagrant && sudo npm install && grunt publish"

Expand Down

0 comments on commit e333d60

Please sign in to comment.