Giter VIP home page Giter VIP logo

platform-install's Introduction

This is my platform installer to get rvm + ruby + nginx with passenger + mongodb up and running!

Prerequisites

Ubuntu 10.10 Maverick Meerkat (tested) - 10.04 will probably work as well, but I haven't tested it.

Install

On a stock Ubuntu 10.10, go to a terminal and run:

sudo bash -l -c "`wget --no-check-certificate -O - https://github.com/pzol/platform-install/raw/master/bootstrap.sh`"

Ruby and RVM

The installer does a system-wide installation of RVM and installs Ruby 1.9.2-p0

Paths

I use /opt to install the apps, you can customize them in the babushka-deps if you want.

Adding ruby web-apps

For a web application to be loaded by passenger automatically, the following criteria must be met

  • The app can be located anywhere, although, we prefer /opt
  • A symbolic link must be created to the apps public dir in /var/www/root , e.g. ln -s /opt/web_app/public/ /var/www/root/web_app
  • Every web app needs to have a file nginx.conf in its directory containing the prefix, e.g. passenger_base_uri web_app;

How things work

Roughly the process looks like this:

  1. Download bootstrap.sh which clones the whole repo
  2. Install pre-requisites rvm and ruby
  3. Install babushka and run it with defaults enabled, no questions asked
  4. Babushka will do the rest

After installing Babushka you can run babushka -T to list all available deps. You will usually run Babushka to install a server role. Servers roles have the .server extension, e.g: babushka proxyacc.server For this the proxyacc_server.rb file contains all required services.

Every server includes the platform dep, so every server has the basic tools needed install including this installer.

Extending install

Keep in mind that all tasks should be added as babushka deps. The bash scripts are only to get started.

All babushka deps should ideally check if the current dep is not only installed, but also if it is installed correctly and in the met section corrective actions shall be taken.

platform-install's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jacol

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.