mirror of
https://github.com/moparisthebest/mail
synced 2024-12-22 07:18:49 -05:00
Create shell script for aws release
This commit is contained in:
parent
65036a5087
commit
1fbb6b0c91
25
res/aws_release.sh
Executable file
25
res/aws_release.sh
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# go to root
|
||||||
|
cd `dirname $0`
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# build and test
|
||||||
|
rm -rf node_modules/
|
||||||
|
npm cache clear
|
||||||
|
npm install
|
||||||
|
npm test
|
||||||
|
|
||||||
|
# install only production dependencies
|
||||||
|
rm -rf node_modules/
|
||||||
|
npm install --production
|
||||||
|
|
||||||
|
# delete .gitignore files before adding to git for aws deployment
|
||||||
|
find node_modules/ -name ".gitignore" -exec rm -rf {} \;
|
||||||
|
|
||||||
|
# Add runtime dependencies to git
|
||||||
|
git add node_modules/ dist/
|
||||||
|
git commit -m "Update aws-dist"
|
||||||
|
|
||||||
|
# push to aws
|
||||||
|
git aws.push
|
Loading…
Reference in New Issue
Block a user