新しいワークスペース環境にプロジェクトを移行させたのですが、テスト環境にも本番環境にも編集したファイルが反映されないです

実現したいこと

Cloud9を使用しているのですが、ワークスペースが古くなり新しいワークスペースでないとherokuにアップできなくなったので、新しいワークスペースを構築し、プロジェクトを移行させてきたのですが試しにファイルを編集してテストしたところ編集した箇所が変更されていませんでした。
何故反映されないのかを知りたいです。

前提

具体的な事としましては、例えばナブバーのアプリ名に変更が反映されるかをテストするためにアプリ目TESTと変更してrails sで確認したのですがTESTは表示されず、変更が反映されませんでした。
ちなみにgithubでプッシュしたところTESTは反映されていました。
rails sでのテスト環境及びHerokuの本番環境のどちらでもTESTと表示されませんでした。

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

変更したファイル内容が反映されませんでした。

該当のソースコード

application.html.erb

1<div class="footer-sub-title"> 2 <p>~マッチングサービスTEST~</p><br />←ここの追記したTESTが表示されない 3 <p>ver.1.1α</p> 4 </div>

Gemfile

1source 'https://rubygems.org' 2git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 4ruby '3.2.2' 5 6# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main' 7gem 'rails', '~> 6.1.3', '>= 6.1.3.1' 8# Use mysql as the database for Active Record 9gem 'mysql2', '~> 0.5' 10# Use Puma as the app server 11gem 'puma', '~> 5.0' 12# Use SCSS for stylesheets 13gem 'sass-rails', '>= 6' 14# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker 15gem 'webpacker', '~> 5.0' 16# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks 17gem 'turbolinks', '~> 5' 18# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 19gem 'jbuilder', '~> 2.7' 20# Use Redis adapter to run Action Cable in production 21# gem 'redis', '~> 4.0' 22# Use Active Model has_secure_password 23# gem 'bcrypt', '~> 3.1.7' 24 25# Reduces boot times through caching; required in config/boot.rb 26gem 'bootsnap', '>= 1.4.4', require: false 27 28group :development, :test do 29 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 30 gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 31end 32 33group :development do 34 # Access an interactive console on exception pages or by calling 'console' anywhere in the code. 35 gem 'web-console', '>= 4.1.0' 36 # Display performance information such as SQL time and flame graphs for each request in your browser. 37 # Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md 38 #gem 'rack-mini-profiler', '~> 2.0' 39 gem 'listen', '~> 3.3' 40 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 41 gem 'spring' 42 43 gem 'better_errors' 44 gem 'binding_of_caller' 45 gem 'letter_opener_web' 46end 47

試したこと

本プロジェクトと別にテストプロジェクトも移行したのですが、同じデータベースを使っていたりしたので、それが関係しているのかと思い使用するデータベースを分けて試したのですが、反映されませんでした。

Gemfileのruby on rails のバージョンと実際のコマンドで表示されたバージョンが違うのが原因のような気がするのですが、こちらは関係ありますか?

補足情報(FW/ツールのバージョンなど)

ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
Rails 6.1.7.6

コメントを投稿

0 コメント