Skip to content

iDoMeteor/amazon-scripts

Repository files navigation

Amazon Linux Scripts by @iDoMeteor/@iDoAWS

TL;DR

A set of scripts for creating Nginx/Passenger virtual host files for Node/Meteor as well as bundling, transferring and deploying Meteor applications.

Written for use on my Amazon Linux 03.06 Node/Meteor Server but should work on most standard distros.

Scripts Included

Server scripts:

  • meteor-add-vhost-clone-and-deploy.sh
  • meteor-bundle-and-deploy.sh
  • meteor-unbundle-and-deploy.sh
  • nginx-add-meteor-vhost.sh
  • nginx-add-node-vhost.sh

Remote scripts:

  • meteor-add-vhost-send-and-deploy.sh
  • meteor-bundle-and-send.sh

Coming Soon:

  • install-gitlab
  • mongo-backup-full-db
  • mongo-backup-user-db
  • mongo-restore-full-db
  • mongo-restore-user-db
  • route53-add-domains
  • route53-delete-domains
  • route53-list-domains
  • route53-list-records

The easy way to remember to remember which to run where?

If it has 'send' in the name, then it should not be run from the server because it wouldn't have to send anything anywhere! :)

All scripts output usage info if you run them without any arguments.

You must read the header comments in each script for a detailed description of what they do and what arguments they take.

meteor-add-vhost-clone-and-deploy.sh

Environment: Server

  • Runs nginx-add-meteor-vhost
  • Changes to the new user
  • Clones the given repository or pulls from the default remote
  • Bundles the application
  • Deploys the app in the user's ~/www
  • Offers to restart services

meteor-add-vhost-send-and-deploy.sh

Environment: Developer

  • Runs nginx-add-meteor-vhost on the server
  • Bundles the local application
  • Sends it to the new user's account
  • Runs meteor-unbundle-and-deploy

meteor-bundle-and-deploy.sh

Environment: Server

  • Bundles the application
  • Deploys the app in the user's ~/www
  • Saves previous ~/www/bundle to ~/www/bundle.old
  • Offers to restart services

meteor-bundle-and-send.sh

Environment: Developer

  • Bundles the local application
  • Sends it to the new user's account
  • Runs meteor-unbundle-and-deploy

meteor-unbundle-and-deploy.sh

Environment: Server

  • Unbundles the application
  • Deploys the app in the user's ~/www
  • Saves previous ~/www/bundle to ~/www/bundle.old
  • Offers to restart services

nginx-add-meteor-vhost.sh

Environment: Server

  • Creates an Nginx/Passenger/Node 0.10.4x/Meteor virtual host .conf file in /etc/nginx/sites-available
  • Creates a symbolic link to the above file in /etc/nginx/sites-enabled
  • Gives the user a Mongo database @ localhost:27017/
  • Restarts Nginx

nginx-add-node-vhost.sh

Environment: Server

  • Creates an Nginx/Passenger/Node 5.x virtual host .conf file in /etc/nginx/sites-available
  • Creates a symbolic link to the above file in /etc/nginx/sites-enabled
  • Restarts Nginx

TODO

route53-add-domain

route53-add-domain

route53-delete-domain

route53-list-domains

route53-list-records

Feedback

I love feedback & comments on Twitter via @iDoAWS or @iDoMeteor. Bug reports and feature requests can be submitted via Github issues.

For private communique, hit me up @ Gmail.

About

Administrative scripts for my EC2 Amazon Linux based Meteor/Mongo/Nginx/Node/Passenger server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages