SaaSのCIと言えばTravis CIやCircle CIといったサービスが有名ですが、いずれにしてもプライベートリポジトリを使う場合は有料なのです。しょうがないよね、商売だもんね。でもCI入れたいなぁ。 そんな中、GithubだろうがBitbucketだろうがプライベートリポジトリでも無料で使っていいよ!というβ期間中のCI、Werckerが僕の周辺で話題になっていたので、触ってみました。画面もスゲー使いやすい上に、ハマりどころもなく、これはひょっとしてひょっとするんじゃないの?という期待を込めて、rails newからRailsアプリをHerokuにデプロイするまえのチュートリアルを作ってみました。みなさんもこの記事を参考に、ぜひ使ってみてください。 この記事のゴール Githubにpushしたら自動的にWercker上でRSpecのテストが動くこと Werckerでのテストに成功し
Heroku の基本 Hello Heroku(Web アプリケーション) Hello clockwork on Heroku(定期実行アプリケーション) foreman について 複数のプロセスを管理する Ruby 上のツール/ライブラリ clockwork について cron の代替となる機能を単独で提供してくれる軽量のツール/ライブラリ Git について ローカル環境で試す 目的 Heroku にインストールした後のアプリケーションの管理についてまとめます。 アプリケーションソースコードの再取得から再デプロイ 作成済みのアプリケーション一覧の確認 以下のコマンドを実行してください。 heroku apps 実行結果は以下のような出力になります。 === My Apps mighty-lowlands-3837 pacific-eyrie-3425 salty-thicket-1737
すごい些細なことなんだけれども。 RailsプロジェクトをGitHubで管理し、それをherokuに上げてます。 別のPCとかで作業したくてgit clone〜でgitHubからRailsプロジェクトを取得したときに、 既存のHerokuのレポジトリをどうやって設定すればいいのか。 ちょっと迷ったのでメモ。 git remote addで加えてやればいいみたい。 アプリケーション名が「test_app」だとすると git remote add heroku git@heroku.com:test_app.git するとherokuコマンドでherokuリポジトリ(アプリ)に対して操作できます。 最初ってheroku createするともうherokuと繋がりができてるから、 既存のherokuリポジトリを使う場合はどうすんだろうと思った、というお話。
2012年05月16日 Herokuで新しい環境に既存のアプリをcloneする方法 PCを新調した際に以前作業していたHeroku用のgitローカルレポジトリがなくなってしまった。 スクリプト本体だけはバックアップしてあったものの、gitでローカルレポジトリを作って、そこで既存アプリ名で heroku create しようとすると、当然ながら既に取得済のアプリ名であると怒られる。heroku には git 経由でないとアップできないし、かと言ってローカルレポジトリを作れないとなるとどうしたら良いのか? そんな場合は本番から clone すれば良いらしい。 git clone git@heroku.com:(アプリ名).git -o heroku秘訣は -o heroku のオプションをつけること。これをやらないと、リモートレポジトリの名前が heroku にならず、git push her
tkyk.name このドメインを購入する。 2018 Copyright. All Rights Reserved. The Sponsored Listings displayed above are served automatically by a third party. Neither the service provider nor the domain owner maintain any relationship with the advertisers. In case of trademark issues please contact the domain owner directly (contact information can be found in whois). Privacy Policy
WordPress, Heroku | 00:12 | 数年ぶりにWordPressをさわりました。ついでにWordPressの日本語版をHerokuに設置するためのパッケージを作成しました。kaorumori / wordpress-herokugithubからcloneしてPostgreSQLを追加します。 $ git clone git://github.com/kaorumori/wordpress-heroku.git $ cd wordpress-heroku $ heroku create -s cedar -b git://github.com/iphoting/heroku-buildpack-php-tyler.git $ heroku addons:add heroku-postgresql:dev さきほどPostgreSQLを追加した際にDBのURLに含まれている
前にTwitterでHerokuなるものを知ってアカウントとっていざ使うってなったのはいいけどどうしてもgit pushのところでパーミッションエラーが起きてしまった。 問題だと思われる原因は2つある。 1つは単純にpublic keyの登録を忘れている。それなら $ heroku keys:add を使えばすぐ解決する。 もう一つは ~/.ssh/configに設定をしてない場合に発生する。 今回のうちの問題は後者だった。 うちの~/.ssh/configを晒すと Host github.com User git port 22 Hostname github.com IdentityFile ~/.ssh/github_id_rsa TCPKeepAlive yes IdentitiesOnly yes Host heroku.com User git port 22 Hostname
いまだにgitがよくわかってない。 git push すると $ git push To git@github.com:snaka/snaka-code-pocket.git ! [rejected] master -> master (non-fast forward) error: failed to push some refs to 'git@github.com:snaka/snaka-code-pocket.git' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes before pushing again. See the 'non-fast forward' section of 'git push --help' for d
こんな感じで、ファイルを用意する。GitHubに誤ってpushしてしまったものがあるので、それを雛形にすると良いかも。herokuのアカウントを持ってる人は、そのままheroku createしてgit push herokuすれば動く。他の人に使ってもらうことはまだ全然想定していないので、よく分からない点があるかもしれない。 https://github.com/r7kamura/yuno git clone git@github.com:r7kamura/yuno.git cd yuno heroku create heroku push heroku open 実装 chiverはgemになっていて、config.ruにこう書いて呼び出すイメージ。ローカルではshotgunかrackupコマンドで動かす。公開するにはherokuにgit pushする。いずれは他の人が使うようにまと
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く