質問内容
個人開発したRailsアプリを、下記の記事を参考にしてロリポップマネージドクラウドにデプロイしようとしています。
<記事>
https://qiita.com/tosite0345/items/10db024c500a7d97cf41
ローカルの該当プロジェクトのディレクトリにて、「git remote add lolipop ssh://[ユーザー名]@[ホスト名]:[ポート番号]/」のコマンドを実行し、リモートリポジトリを追加するところまではできました。
※「git remote -v」で確認済み。
その後、「git push lolipop master」を実行したところ、下記のようなエラーが出てデプロイできませんでした。
エラーコード
remote: [DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set deployment 'true'`, and stop using this flag remote: [DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path 'vendor/bundle'`, and stop using this flag remote: [DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set without 'development,test'`, and stop using this flag remote: Your Ruby version is 2.7.3, but your Gemfile specified ~> 2.6.5 remote: Build seems to be failed. Abort To ssh://〇〇〇〇/ ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'ssh://〇〇〇〇/'
調べたこと
- pre-receive hook declined
→下記サイトを参考にしましたが、GitHub上で保護をかけているブランチはなかったので、権限回りではなさそう…。しかもGitLabは使ってない…。
<サイト>
https://mebee.info/2020/08/19/post-16968/
https://codechacha.com/ja/gitlab-pre-receive-declined-error/
https://geek-se-mama.com/gitlab
- 3箇所の「remote: [DEPRECATED]」
→bundle installコマンドのオプション指定時のエラーとのことですが、マネージドクラウドの公式サイトによると、push時に「bundle install --deployment --without development,test --path vendor/bundle」を実行しているよう…。オプションを指定せずに実行するのは無理っぽい…?
<マネージドクラウド公式>
https://support.mc.lolipop.jp/hc/ja/articles/360001043047-Ruby-on-Rails%E3%82%A2%E3%83%97%E3%83%AA%E3%81%AE%E3%83%87%E3%83%97%E3%83%AD%E3%82%A4%E6%96%B9%E6%B3%95
解消したいこと
1.「pre-receive hook declined」に引っ掛からずpushする
2.3箇所の「remote: [DEPRECATED]」に引っ掛からずpushする
補足情報
- PCのOS:MacOS Ventura13.0
- Rubyバージョン:2.6.5
- Railsバージョン:6.0.0
- Bundlerバージョン:2.1.4
ロリポップ!マネージドクラウドを使ってRailsアプリをデプロイされた方で、対処方法などご存じの方がいらっしゃれば、ご教授いただけますと幸いです…。
回答1件
あなたの回答
tips
プレビュー