- 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