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
| # ----------------------------- | |
| # PostgreSQL configuration file | |
| # ----------------------------- | |
| # | |
| # This file consists of lines of the form: | |
| # | |
| # name = value | |
| # | |
| # (The "=" is optional.) Whitespace may be used. Comments are introduced with | |
| # "#" anywhere on a line. The complete list of parameter names and allowed |
| module Kmeans | |
| class Point | |
| attr_accessor :x, :y | |
| def initialize(x,y) | |
| @x = x | |
| @y = y | |
| end | |
| def to_a |
| module Kmeans | |
| class Cluster | |
| attr_accessor :centroid, :points | |
| def initialize(centroid) | |
| @centroid = centroid | |
| @points = [] | |
| end | |
| def centroid! |
| module Kmeans | |
| class Demo | |
| # data list and clusters | |
| attr_accessor :data, :k | |
| def initialize(data, k, i = 10) | |
| @data = data | |
| @k = k | |
| clusters = [] |
| 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; |
| { | |
| "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": { |
| default: &default | |
| adapter: mysql2 | |
| encoding: utf8 | |
| pool: 5 | |
| username: root | |
| password: | |
| socket: /tmp/mysql.sock | |
| development: | |
| <<: *default | |
| database: betgoal_development |
| INFO [37c3b2e0] Running /usr/bin/env chmod +x /tmp/truckid/git-ssh.sh as ubuntu@54.212.128.131 | |
| 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 ubuntu@54.212.128.131: connection closed by remote host | |
| Net::SSH::Disconnect: connection closed by remote host | |
| EOFError: end of file reached |
| 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/ |