Giter Club home page Giter Club logo

amazon-scripts's Introduction

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.

amazon-scripts's People

Contributors

idometeor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.