質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

0回答

1240閲覧

webアプリがデプロイされません。

s.k

総合スコア423

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2017/01/28 03:13

編集2022/01/12 10:55

###前提・実現したいこと
Rails5からアプリをデプロイしたいです。

###発生している問題・エラーメッセージ

アプリが見当たりません。。。

【/home/deploy/staging】

[deploy@tk2-241-30026:~/staging]$ ls releases shared

###該当のソースコード

デプロイ

$ cap production deploy deploy@xxx.xx.xxx.xx's password: deploy@xxx.xx.xxx.xx's password: 00:00 git:wrapper 01 mkdir -p /tmp deploy@xxx.xx.xxx.xx's password: 01 bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) ✔ 01 deploy@xxx.xx.xxx.xx 3.845s deploy@160.16.198.30's password: Uploading /tmp/git-ssh-third_app-production-ubuntu.sh 100.0% 02 chmod 700 /tmp/git-ssh-third_app-production-ubuntu.sh 02 bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) ✔ 02 deploy@xxx.xx.xxx.xx 0.149s 00:07 git:check 01 git ls-remote --heads ssh://git@bitbucket.org/sagaekeiga/third_app.git 01 bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) 01 /bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) 01 f1fa9b57dc8683e2efce7c8eb03d224bebdb9a8f refs/heads/IndividualEvaluation 01 bf3331afd60eed3c38ce042857632d9684cf8d47 refs/heads/SocialProfile 01 13df3fec6c5fb2f69d0f2dc5f43bb0ceb5932e88 refs/heads/UI-1 01 91678db69f43a1fd0693c3015e98e0fd5e4ca31f refs/heads/call 01 855d4b8538da24b8424a9337143ed96648d09026 refs/heads/cap 01 e150cd8b4dd9bb4eb9d503eb191f9ed2f3e8c0b9 refs/heads/clip 01 d398612c204ab6bec2b1844ee5a91c1fe3992519 refs/heads/comment 01 ed11b1f282d81e03466edddc6c151e0c41db6001 refs/heads/demand 01 46d626e46a3159de1b417d6e4b63e142eb424579 refs/heads/devise-strongparameters 01 81947c39e6e62732f89966e500465e15cd92ea74 refs/heads/follow-shops-to-users 01 f2cb5821c2dc96501b1739fa4dea2270ec39cdab refs/heads/follow-users-to-shop 01 3e545daec4224b4441b6b76b6cabbb24112a000f refs/heads/following-shops 01 d6a1dd6636b30c2007110386c18121e4000b80e6 refs/heads/following-shops-new 01 7faf81d6534152ef505b66fe8329c53b2e2d73c0 refs/heads/following-users 01 f311041927a9250f57828c054a29dbb87c3b68ea refs/heads/following-users-to-shop 01 3ec55025f675fddfdb1443507b39acfb8ed56835 refs/heads/insist_shop-to-micropost.user 01 5f0b0784e0d0e1baf038786fe2a8be94089715b4 refs/heads/like-shop 01 7d3d18c80f9913a9e081fe61d791fbe8eb040f4f refs/heads/like-users-to-shop 01 14b36068c5139fe0520b88ee7e56492a56ea20e2 refs/heads/liking-shops 01 4bfb35a5a6192a2dca96695c72411ff735a4f39e refs/heads/liking-users 01 be74a9312638eb02f935a11f297ab81a339b9486 refs/heads/mailer 01 e04a5a001d123fbe48ac6034219ca6e291ff43d4 refs/heads/master 01 de8224260bfc71f585b1f47ed8a8bb0a00809f84 refs/heads/messagebox 01 338ea850c89dd09dbd9516fe47d36b41dc03cf72 refs/heads/micropost-partial 01 93ab80c6a4ceb93033fc12ba58bc371cef4af316 refs/heads/micropost_partial_fusion 01 962aced04ebf61068f8a3be4e42023bd2f4d7929 refs/heads/microposts-partial 01 eaab87dc15b5586baf08ac38233a359f00c3d483 refs/heads/movie 01 63da3a3c5f809ccdb53b52fc873d6b488285c489 refs/heads/my-new-feature 01 eaab87dc15b5586baf08ac38233a359f00c3d483 refs/heads/rank 01 983dc6e3373cfb755c852eb8f8662c13177e4d37 refs/heads/recruit 01 4e5f7da406ca722aabe45a026853fdafb0b3fe1b refs/heads/request 01 cecdfb261ea13a888a254692b2d2b605530447a2 refs/heads/say_shop-to-micropost.shop 01 5f3fad920c15d9c45ee9eef673dd53475c18dfb9 refs/heads/search 01 72c54307c0b3971c9984a1d15f47986bdfb5d959 refs/heads/shop-favorites-micropost 01 3708d79eebf2bda7ec901e82c94847fe07a094c8 refs/heads/shop_controller 01 6512361d20b307f0fab6b778ac97c2171da46979 refs/heads/shops-update-delete 01 e23ca6174a237e88bbc3cfdb086930732ddd92a0 refs/heads/sign_up-login 01 8a9cf90684498c85f098dcf50b0410a7cadf4b01 refs/heads/signup-login 01 eaab87dc15b5586baf08ac38233a359f00c3d483 refs/heads/tag 01 f755dcb002868f110eaa43a8d2c36bada93b00f2 refs/heads/test 01 3e545daec4224b4441b6b76b6cabbb24112a000f refs/heads/testfile 01 46cafea290ba59c58bf905b84967ab64fa7db853 refs/heads/updating-users 01 0a76cc4a3900747a3422b96c1ed9d082a77fd0ad refs/heads/user-favorites-ajax 01 72c54307c0b3971c9984a1d15f47986bdfb5d959 refs/heads/user-favorites-page 01 338ea850c89dd09dbd9516fe47d36b41dc03cf72 refs/heads/user-shop-microposts 01 b5c0f8d4c6610636243a5043432110867eb309b4 refs/heads/users-update-delete 01 11db5c51f344d556a23119e309d617d0475b5de1 refs/heads/websocket ✔ 01 deploy@xxx.xx.xxx.xx 2.827s 00:10 deploy:check:directories 01 mkdir -p /home/deploy/staging/shared /home/deploy/staging/releases 01 bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) ✔ 01 deploy@160.16.198.30 0.083s 00:10 deploy:check:linked_dirs 01 mkdir -p /home/deploy/staging/shared/public/assets 01 bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) ✔ 01 deploy@xxx.xx.xxx.xx 0.085s 00:10 deploy:check:make_linked_dirs 01 mkdir -p /home/deploy/staging/shared/config 01 bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) ✔ 01 deploy@xxx.xx.xxx.xx 0.080s 00:11 deploy:check:linked_files linked file /home/deploy/staging/shared/config/secrets.yml does not exist on xxx.xx.xxx.xx

【deploy/staging.rb】

set :pty, true server '160.16.198.30', user: 'deploy', roles: %w{app db web} shared_path = "/home/deploy/staging/shared" set :unicorn_pid, "#{shared_path}/tmp/pids/unicorn.pid" set :unicorn_options, -> { "--path /staging" } set :unicorn_exec, -> { "unicorn_rails" }

【config/deploy.rb】

lock '3.7.1' set :application, 'third_app' set :repo_url, 'git@bitbucket.org:sagaekeiga/third_app.git' set :git_https_username, 'sagaekeiga' set :deploy_to, '/home/deploy' set :pty, true set :rbenv_ruby, '2.3.1' set :rbenv_type, :system set :ssh_options, { user: 'deploy', port: 61203 } set :ssh_options, :port => "61203" set forward_agent: true set :unicorn_rack_env, "none" set :unicorn_config_path, 'config/unicorn.rb' set :scm, :git set :keep_releases, 5 set :default_env, { rbenv_root: "/usr/local/rbenv", path: "usr/local/rbenv/shims:/usr/local/rbenv/bin:$PATH" } set :rails_env, :staging after 'deploy:publishing', 'deploy:restart' namespace :deploy do desc 'Restart application' task :restart do invoke 'unicorn:restart' end end

gitからサーバに送られません…

###環境
cloud9
ubuntu
CentOS 6.8

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問