peco8 / quickstart-ruby

Getting start in Arukas wih Ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quickstart-ruby

A simple Ruby app ( using Sinatra: a DSL for quickly creating web applications in Ruby with minimal effort http://www.sinatrarb.com/ ) which can easily be deployed to Arukas.

Running locally

$ git clone https://github.com/peco8/quickstart-ruby.git
$ cd quickstart-ruby
$ docker build --no-cache --tag quickstart-ruby .
$ docker run -rm -d -p 4567:4567 quickstart-ruby

Your app should now be running:

$ curl 192.168.59.103:4567
Hello World!

Deploying to Arukas

Install the Arukas CLI.

or If you have docker installed already,

$ docker run --rm -e ARUKAS_JSON_API_TOKEN=<APIT_TOKEN> \
                  -e ARUKAS_JSON_API_SECRET=<SECRET_KEY> \
                    arukasio/arukas run --instances=1 \
                                        --mem=512 \
                                        --ports=4567:tcp peco8/quickstart-ruby

Authors

License

This project is licensed under the terms of the MIT license.

Continue with this tutorial here.

About

Getting start in Arukas wih Ruby

License:MIT License


Languages

Language:Ruby 100.0%