bundle exec rake assets:precompile
-
production is default enviroment
bundle exec puma -C config/puma.rb -d
-
set environment
bundle exec puma -e staging -C config/puma.rb -d
# Version: 0.1 | |
# Get from ubuntu 14.04 version | |
FROM ubuntu:14.04 | |
MAINTAINER Andres Colonia "[email protected]" | |
# Install git client | |
RUN apt-get -y install git | |
# Install PGP key. Packages are signed by "Phusion Automated Software Signing |
nginx_1 | 10.0.2.2 - - [20/Nov/2015:16:12:21 +0000] "GET / HTTP/1.1" 500 61860 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36" | |
web_0_1 | 16:12:21 app_1.1 | 10.0.2.2 - - [20/Nov/2015:16:12:21 +0000] "GET / HTTP/1.0" 500 61860 0.2071 | |
nginx_1 | 2015/11/20 16:12:25 [error] 8#0: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 10.0.2.2, server: web, request: "GET / HTTP/1.1", upstream: "http://172.17.1.99:3001/", host: "localhost:9000" | |
nginx_1 | 10.0.2.2 - - [20/Nov/2015:16:12:25 +0000] "GET / HTTP/1.1" 500 61860 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36" | |
web_0_1 | 16:12:25 app_1.1 | 10.0.2.2 - - [20/Nov/2015:16:12:25 +0000] "GET / HTTP/1.0" 500 61860 0.1042 | |
web_0_1 | 16:12:27 app_1.1 | 10.0.2.2 - - [20/Nov/2015:16:12:27 +0000] "GET / HTTP/1.0" 500 61860 0.0639 | |
nginx_1 | 10.0.2.2 - - [20/Nov/ |
INFO [37c3b2e0] Running /usr/bin/env chmod +x /tmp/truckid/git-ssh.sh as [email protected] | |
DEBUG [37c3b2e0] Command: /usr/bin/env chmod +x /tmp/truckid/git-ssh.sh | |
INFO [37c3b2e0] Finished in 0.569 seconds with exit status 0 (successful). | |
cap aborted! | |
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: connection closed by remote host | |
Net::SSH::Disconnect: connection closed by remote host | |
EOFError: end of file reached |
default: &default | |
adapter: mysql2 | |
encoding: utf8 | |
pool: 5 | |
username: root | |
password: | |
socket: /tmp/mysql.sock | |
development: | |
<<: *default | |
database: betgoal_development |
{ | |
"total": 2, | |
"movies": [{ | |
"id": "770672122", | |
"title": "Toy Story 3", | |
"year": 2010, | |
"mpaa_rating": "G", | |
"runtime": 103, | |
"critics_consensus": "Deftly blending comedy, adventure, and honest emotion, Toy Story 3 is a rare second sequel that really works.", | |
"release_dates": { |
package me.beelink.truckid; | |
import android.app.Activity; | |
import android.app.SearchManager; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.res.Resources; | |
import android.os.Bundle; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; |
module Kmeans | |
class Demo | |
# data list and clusters | |
attr_accessor :data, :k | |
def initialize(data, k, i = 10) | |
@data = data | |
@k = k | |
clusters = [] |
module Kmeans | |
class Cluster | |
attr_accessor :centroid, :points | |
def initialize(centroid) | |
@centroid = centroid | |
@points = [] | |
end | |
def centroid! |
module Kmeans | |
class Point | |
attr_accessor :x, :y | |
def initialize(x,y) | |
@x = x | |
@y = y | |
end | |
def to_a |