Skip to content

abtain/qskynet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QSKYNET

By Daniel Quellhorst ([email protected])

Summary

QSKYNET is a simple way to get a ruby on rails production environment running on ubuntu 10.10.

I tend to use RVM on OSX. If you use rvm, you don't need run sudo when installing gems.

QSKYNET follows Readme Driven Development

Installation

Step 1: Install QSKYNET

$ git clone [email protected]:abtain/qskynet.git
# install required gems
$ bundle install

Step 2: SSH into remote system. $ ssh [email protected]

Step 3: Setup Ruby environment $ sudo apt-get install curl git-core build-essential zlib1g-dev libssl-dev libreadline5-dev -y $ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) $ echo 'if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" ; fi' >> ~/.bashrc $ # test new terminal with rvm notes see if there is output $ rvm install 1.9.2 $ rvm --default ruby-1.9.2 $ # can test with ruby -v

Step 4: Setup dotfiles $ curl http://q3.abtain.com/static/dotfiles/gemrc > /home/quellhorst/.gemrc $ curl http://q3.abtain.com/static/dotfiles/irbrc > /home/quellhorst/.irbrc

Step 5: Install default Ruby gems $ bash < <( curl http://q3.abtain.com/static/scripts/gems.sh )

Step 6: Install Mysql server $ curl http://q3.abtain.com/static/scripts/mysql.sh > /home/quellhorst/mysql.sh $ source mysql.sh $ mysql_install "PaSSword1"

Static Assets

Some files are stored in S3 like dotfiles and scripts to bootstrap the installation. q3.abtain.com is used in the example here and you are free to use this.

You can also setup your own static assets server on S3. You need to create a new bucket with the hostname and setup a cname dns entry pointing your hostname to 's3.amazonaws.com.'

Static assets are synced up with the rake task rake deploy:static

Contribute

If you'd like to hack on QSKYNET, start by forking my repo on GitHub:

http://github.com/abtain/qskynet

To get all of the dependencies, run bundle install.

The best way to get your changes merged back into core is as follows:

  1. Clone down your fork
  2. Create a topic branch to contain your change
  3. Hack away
  4. Add tests and make sure everything still passes by running rake
  5. If you are adding new functionality, document it in the README.md
  6. Do not change the version number, I will do that on my end
  7. If necessary, rebase your commits into logical chunks, without errors
  8. Push the branch up to GitHub
  9. Send me (quellhorst) a pull request for your branch

Copyright

Copyright (c) 2010 Daniel Quellhorst. See LICENSE for details.

About

QSKYNET is an easy way to setup a remote Rails Server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages