Skip to content

Commit

Permalink
mac script to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrés Meza committed Nov 18, 2015
1 parent 2f81537 commit 5565c40
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
echo Build started
rm -rf dist
mkdir dist
cd dist
mkdir install
cd ..
npm install --prefix dist/install .
rm dist/dist.zip
cd dist/install/node_modules/alexa-plex/
zip -r ../../../dist.zip * .env
echo files are ready
cd ..
cd ..
cd ..
cd ..
echo uploading zip file, please wait...
aws lambda update-function-code --zip-file fileb://dist/dist.zip --function-name alexa-plex
echo upload is done, exiting.

0 comments on commit 5565c40

Please sign in to comment.