deploying rails app to ubuntu server

12

Click here to load reader

Upload: shuky-dvir

Post on 25-Jun-2015

1.040 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Deploying Rails App To Ubuntu Server

Deploying a Rails App to Ubuntu Server

Page 2: Deploying Rails App To Ubuntu Server

Me● Team Leader @Biodata● 1+ year In Ruby / Rails● Father, Husband and Beer lover Find me

@shukydvirhttp://www.linkedin.com/in/[email protected]

Page 3: Deploying Rails App To Ubuntu Server

Deploy?We all know but still.....

Page 4: Deploying Rails App To Ubuntu Server

Deploy with?Manually, Capistrano, Moonshine, SCP, FTP, Git, Chef, Puppet, FPM, DEB, RPM?

Page 5: Deploying Rails App To Ubuntu Server

Agenda● RVM● Ubuntu● Thin● Capistrano● Foreman● Upstart

Page 6: Deploying Rails App To Ubuntu Server

RVMhttps://rvm.io/

RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.

Page 7: Deploying Rails App To Ubuntu Server

Ubuntu

Ubuntu is a computer operating system based on the Debian Linux distribution and distributed as free and open source software, using its own desktop environment. It is named after the Southern African philosophy of ubuntu.Ubuntu is designed primarily for use on personal computers, although a server edition also exists.

Page 8: Deploying Rails App To Ubuntu Server

Thin

Thin is a Ruby web server that glues together 3 of the best Ruby libraries in web history:Mongrel parser, Event Machine, Rack.Which makes it, with all humility, the most secure, stable, fast and extensible Ruby web server bundled in an easy to use gem for your own pleasure.

Page 9: Deploying Rails App To Ubuntu Server

Capistrano

Capistrano is a developer tool for deploying web applications. It is typically installed on a workstation, and used to deploy code from your source code management (SCM) to one, or more servers.

Page 10: Deploying Rails App To Ubuntu Server

Foreman

Foreman is a manager for Procfile-based applications. Its aim is to abstract away the details of the Procfile format, and allow you to either run your application directly or export it to some other process management format.

Page 11: Deploying Rails App To Ubuntu Server

Upstart

Upstart is an event-based replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.

Page 12: Deploying Rails App To Ubuntu Server

So let's see the code.....