2017-01-23から1日間の記事一覧
ngrokとは 外部からlocalhostにアクセスを可能とするためのサービス 例えば「http://localhost:3000」が「http(s)://8aefda72.ngrok.io」になって公開される感じ ngrok.com install macならこれでOK $ brew install ngrok 実行 $ ngrok http 3000 まとめ テ…
後で見直すためにメモ ファイルを保存する URLを指定してファイルを保存する #hoge.rb #pathも指定する filename = "hoge/hoge.rb" url = "http://hoge.com" open(url) do |file| open(filename, "w+b") do |out| out.write(file.read) end end 時刻を扱う #…
webアプリケーションを動かす上で 忘れちゃうんでメモ 間違ってたらごめんなさい 構成 ruby 2.3.1 rails 5.0.1 nginx capistrano puma conoha - centOS 6.7 64bit 目次 VPS vpsは検討の末conohaのvpsを使用 ssh接続のための接続等は省略しておきます。 とり…