- Fixed
pm2
startup script
- Introduced ability to set process count in
pm2
- Changed
_
to-
in task names
- Added
ec2-deploy-many
to deploy to multiple EC2 instances
- Added
ec2-rename-tag:old:replacement
to rename an instance - Added
ec2-pm2-update
task to runnpm update -g pm2
on the instance
Fixes
- Fixed issue during deploys, when nginx isn't enabled
- Revert from Grunt
@0.4.2
to using@0.4.1
- Update dependencies to edge versions
- Use
~
in dependency versions
- Differentiate logging from AWS API requests (
aws
) and commands executed (cmd
)
Fixes
- Fixed issues in
ec2-elb-attach
andec2-elb-detach
tasks
BREAKING
- Stopped using
aws-cli
in favor of the nativeaws-sdk
API - Installing
pip
andaws-cli
isn't necessary anymore
Fixes
- Fixed issue with remote
rsync
path resolving to something ending with//*
, causing various issues.
Fixes
- Local
rsync
path is now.
, rather thanprocess.cwd()
, helping fix an issue on Windows.
Fixes
- Typing ctrl+c once kills the active command in the remote
ssh
session. Typing ctrl+c again ends the task - Fixed issues when typing
exit
into thessh
interactive session
Known Issues
- Terminating commands with a
SIGINT
signal (typing ctrl+c) overssh
using the interactiveec2-ssh
task is unsupported at the moment: You have to leave the session in order to terminate the program. This is being addressed.
Fixes
- Proper
ssh
session termination
BREAKING
ec2-ssh
renamed asec2-ssh-text
ec2-ssh
is a new command that enables interactivessh
on the instance, saving you the step to copy and paste the command
ec2-elb-attach:name:elb?
attaches an instance to an ELBec2-elb-detach:name:elb?
detaches an instance from an ELB- ELB is optional, if not found, default value
"AWS_ELB_NAME"
is used ec2-assign-existing-address:id:ip
assigns an IP address to an instance without allocating a new one"NPM_INSTALL_DISABLED"
option won'tnpm install --production
after deploys iftrue
"NPM_REBUILD"
option willnpm rebuild
after deploys iftrue
Fixes
- Pass cygwin-style local paths to
rsync
on Windows
BREAKING
ec2-list
now lists instances in one liners containing important informationec2-lookup
now lists instances in one liners containing important information- Previous
ec2-list
functionality renamed asec2-list-json
- Previous
ec2-lookup
functionality renamed asec2-list-json
- Added description to all Grunt tasks exposed by
grunt-ec2
- Little prefix to differentiate commands run locally from those run over ssh
- Separated
nginx
configuration into independant task - Verbose logging on some code paths (using
--verbose
) nginx
now minifying favicons, just runec2-nginx-configure:something
to update
rsync
uses a larger buffer than regular commands weexec
rsync
verbosity can be set with theVERBOSITY_RSYNC
optionnpm
verbosity can be set with theVERBOSITY_NPM
option- Fixed bug when defaulting to use the
defaults.rsyncignore
file - Elastic IP assignment is now optional, but enabled by default
- Ability to provide
ENV
option which is passed topm2
as environment variables
- Collect insights with the Google PageSpeed service on deploys through grunt-pagespeed
- Also available through
ec2-pagespeed:ip
(ip
could also be a domain such asexample.com
)
- When shutting down an instance, delete its name tag
- Run
sudo pm2 list
after deploys, to make sure we notice things like a spike of process restarts
- Either use HTTP or HTTPS. Never both
- Support added for HTTPS on
nginx
! - Better configurability of what gets excluded and included by
rsync
during deployments.
BREAKING
- Changed
AWS_SECURITY_GROUP_NAME
toAWS_SECURITY_GROUP
- Changed
RSYNC_IGNORE
toRSYNC_EXCLUDE_FROM
- New task
ec2-version
to find out currently deployed app version - New task
ec2-node-list
prints a list ofnode
processes - New task
ec2-node-monit
prints diagnostics information - New task
ec2-node-reload
hot code reload withpm2
- New task
ec2-node-restart
restartspm2
- New task
ec2-node-start
starts node throughpm2
- New task
ec2-node-stop
stopspm2
- New task
ec2-nginx-reload
reloadsnginx
server - New task
ec2-nginx-restart
restartsnginx
- New task
ec2-nginx-start
starts thenginx
service - New task
ec2-nginx-stop
stops thenginx
service - New task
ec2-logs-nginx-access
displaysnginx
access logs - New task
ec2-logs-nginx-error
displaysnginx
error logs - New task
ec2-logs-node
flushespm2
logs
- Proxy
nginx
server in front ofNode
- Persist port forwarding configuration through reboots
- Sets
NODE_ENV
to the name of the EC2 instance - Added
ec2-reboot:name
task - Log HTTP url after deploys
- Fixed
pm2
start/reload command - Peek at logs 5s after deploys using
pm2 flush
- Port forwarding from 80 to 8080
- Create and assign elastic IP address to instances
- Release assigned IP addresses on instance shutdown
- Keep only the last 10 versions, deletes older ones on deploys