Skip to content

Instantly share code, notes, and snippets.

View mojopon's full-sized avatar

Mojopon mojopon

  • Skooma Den
  • Bravil
View GitHub Profile
@mojopon
mojopon / recipe
Created August 6, 2012 04:32
カレーのレシピ
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>カレーのレシピ</title>
</head>
<body>
<h1>カレーのレシピ</h1>
<h3>
誰でもできる、美味しいカレーの作り方です。旦那も息子もこのカレーが大好物。
ポイントは玉ねぎと人参はミキサーで細かくしてしまうところ。逆にコクのある美味しいカレーになります。
@mojopon
mojopon / html5rock
Created August 6, 2012 08:39
html5rock
<!DOCTYPE html>
<html dir="ltr" itemscope="" itemtype="http://schema.org/Article" lang="ja">
<head>
<meta charset="utf-8">
<!--
Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@mojopon
mojopon / gist:4058115
Created November 12, 2012 08:16
ローカルホストにデプロイしようとしたときエラー
macmini:myapp tyamuro$ cap deploy
triggering load callbacks
* 2012-11-12 17:13:57 executing `staging'
triggering start callbacks for `deploy'
* 2012-11-12 17:13:57 executing `multistage:ensure'
* 2012-11-12 17:13:57 executing `deploy'
* 2012-11-12 17:13:57 executing `deploy:update'
** transaction: start
* 2012-11-12 17:13:57 executing `deploy:update_code'
executing locally: "git ls-remote git@github.com:tyamuro/myapp.git HEAD"
@mojopon
mojopon / gist:4064693
Created November 13, 2012 08:41
Linuxにデプロイしようとしてエラー
macmini:myapp tyamuro$ cap deploy
triggering load callbacks
* 2012-11-13 17:39:33 executing `staging'
triggering start callbacks for `deploy'
* 2012-11-13 17:39:33 executing `multistage:ensure'
* 2012-11-13 17:39:33 executing `deploy'
* 2012-11-13 17:39:33 executing `deploy:update'
** transaction: start
* 2012-11-13 17:39:33 executing `deploy:update_code'
executing locally: "git ls-remote git@github.com:tyamuro/myapp.git HEAD"
@mojopon
mojopon / gist:4077359
Created November 15, 2012 08:17
デプロイ中のエラー
macmini:myapp tyamuro$ cap deploy:cold
triggering load callbacks
* 2012-11-15 17:13:38 executing `staging'
triggering start callbacks for `deploy:cold'
* 2012-11-15 17:13:38 executing `multistage:ensure'
* 2012-11-15 17:13:38 executing `deploy:cold'
* 2012-11-15 17:13:38 executing `deploy:update'
** transaction: start
* 2012-11-15 17:13:38 executing `deploy:update_code'
executing locally: "git ls-remote git@github.com:tyamuro/myapp.git master"
@mojopon
mojopon / gist:4129995
Created November 22, 2012 08:32
ローカルの怖話でActiveRecord::RecordNotFound (Couldn't find Comic with id=1)
macmini:kowabana tyamuro$ rails s
=> Booting Thin
=> Rails 3.2.8 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
>> Thin web server (v1.5.0 codename Knife)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
[2012-11-22T17:31:02 (67438)] INFO : ** [Dumper] agent started as primary, max_filesize = 4294967296
@mojopon
mojopon / gist:4130002
Created November 22, 2012 08:34
rake db:purgeでエラー
macmini:kowabana tyamuro$ rake db:purge --trace
** Invoke db:purge (first_time)
** Invoke db:remove (first_time)
** Execute db:remove
rm db/development.sqlite3
rm db/test.sqlite3
rm db/schema.rb
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
validates_format_of :website, :with => URI::regexp(%w(http https)),
:allow_blank => true,
:message => I18n.t('errors.messages.invalid_url')
validates_format_of :website, :with => URI.regexp(/^https?/),
:allow_blank => true,
:message => I18n.t('errors.messages.invalid_url')
macmini:rails_tutorial tyamuro$ cd /home/tyamuro/fjord/deploy/releases/20130125075645 && bundle install --gemfile /home/tyamuro/fjord/deploy/releases/20130125075645/Gemfile --path /home/tyamuro/fjord/deploy/shared/bundle --deployment --quiet --without development test
macmini:rails_tutorial tyamuro$ cap deploy:update
* 17:03:59 == Currently executing `deploy:update'
** transaction: start
* 17:03:59 == Currently executing `deploy:update_code'
executing locally: "git ls-remote git@github.com:tyamuro/rails_tutorial.git HEAD"
command finished in 6608ms
* executing "git clone -q git@github.com:tyamuro/rails_tutorial.git /home/tyamuro/fjord/deploy/releases/20130125080405 && cd /home/tyamuro/fjord/deploy/releases/20130125080405 && git checkout -q -b deploy 661ea0dc9acc82dc8f5f3e311dad789017273e77 && (echo 661ea0dc9acc82dc8f5f3e311dad789017273e77 > /home/tyamuro/fjord/deploy/releases/20130125080405/REVISION)"
servers: ["192.168.1.14"]
[192.168.1.14] executing command