Sample Application That Demonstrates How We Deploy @ Codecademy
- Ruby
- Python
- AWS CLI Tools
pip install awscli
- AWS Account and access keys available as ENV Vars
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
- An S3 Bucket
- Replace the
godeploy
bucket with your bucket in the following locations.
- Compiles
- Builds Tarball
- Uploads Tarball to s3_bucket/builds
Displays a list of published builds
$ ./contrib/deploy builds
GIT SHA GIT BRANCH BUILD DATE
4e442671b948a41821eab6cc1040d1e0c753326e master 2015-02-19 03:02:00 -0500
ac851020f4124bc07bbabe70521ad25eb1189ba4 master 2015-02-19 02:57:29 -0500
Copies published tarball from build directory to tag directory
$ ./contrib/deploy tag --sha 4e442671b948a41821eab6cc1040d1e0c753326e --tag staging
Success! Tagged 4e442671b948a41821eab6cc1040d1e0c753326e to staging.
Lists tags and current version
$ ./contrib/deploy tags
TAG GIT SHA PUBLISH DATE
staging 4e442671b948a41821eab6cc1040d1e0c753326e 2015-02-19 03:02:43 -0500
production ac851020f4124bc07bbabe70521ad25eb1189ba4 2015-02-19 02:50:47 -0500
Fetches tagged tarball, assumed production, from s3 into deployed directory.