Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idometeor/amazon-scripts
Administrative scripts for my EC2 Amazon Linux based Meteor/Mongo/Nginx/Node/Passenger server
https://github.com/idometeor/amazon-scripts
meteor-bundle meteor-server meteorjs nginx passenger
Last synced: 22 days ago
JSON representation
Administrative scripts for my EC2 Amazon Linux based Meteor/Mongo/Nginx/Node/Passenger server
- Host: GitHub
- URL: https://github.com/idometeor/amazon-scripts
- Owner: iDoMeteor
- Created: 2016-04-22T00:27:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-31T13:06:18.000Z (almost 7 years ago)
- Last Synced: 2024-10-14T03:42:05.275Z (22 days ago)
- Topics: meteor-bundle, meteor-server, meteorjs, nginx, passenger
- Language: Shell
- Homepage: https://aws.amazon.com/marketplace/pp/B01KVETP5A?qid=1489410184712
- Size: 98.6 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.shRemote scripts:
* meteor-add-vhost-send-and-deploy.sh
* meteor-bundle-and-send.shComing 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-recordsThe 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](https://twitter.com/iDoAWS) or
[@iDoMeteor](https://twitter.com/iDoMeteor). Bug reports and feature requests
can be submitted via [Github
issues](https://github.com/idometeor/amazon-scripts/issues).For private communique, hit me up @ Gmail.