Skip to content

Commit 5565c40

Browse files
author
Andrés Meza
committed
mac script to deploy
1 parent 2f81537 commit 5565c40

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

deploy.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
echo Build started
3+
rm -rf dist
4+
mkdir dist
5+
cd dist
6+
mkdir install
7+
cd ..
8+
npm install --prefix dist/install .
9+
rm dist/dist.zip
10+
cd dist/install/node_modules/alexa-plex/
11+
zip -r ../../../dist.zip * .env
12+
echo files are ready
13+
cd ..
14+
cd ..
15+
cd ..
16+
cd ..
17+
echo uploading zip file, please wait...
18+
aws lambda update-function-code --zip-file fileb://dist/dist.zip --function-name alexa-plex
19+
echo upload is done, exiting.

0 commit comments

Comments
 (0)