学生向けプログラミング入門 | 無料

学生向けにプログラミングを無料で解説。Java、C++、Ruby、PHP、データベース、Ruby on Rails, Python, Django

Rails7.1 | 民泊予約アプリ作成 | 46 | コンパイルテスト

↓↓クリックして頂けると励みになります。



45 | production.rbの設定】 << 【ホーム】 >> 【47 | Herokuの接続とPush



HerokuにPushする前に、コンパイルテストを行い、エラーが出ないかどうか確認します。
ここでエラーが出れば、実際にHerokuにPushする際にも同じエラーが出ます。

以下のコマンドを実行してコンパイルテストを行います。


コマンド
rails assets:precompile RAILS_ENV=production


2023年11月18日現在、このプロジェクトの環境ではコンパイルエラーは起きませんでした。

~/Desktop/Rails7_1/VacationRental7 $ rails assets:precompile RAILS_ENV=production

I, [2023-11-18T09:36:13.303361 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/manifest-2f0ac84ec540eb753a59078be1e78cb9bb00e12a9a8d6d826039a818a0008610.js
I, [2023-11-18T09:36:13.303861 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/manifest-2f0ac84ec540eb753a59078be1e78cb9bb00e12a9a8d6d826039a818a0008610.js.gz
I, [2023-11-18T09:36:13.304325 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/AmericanExpress-c8b3f61acfab732d7c4c0e8856ccfdd233d55700014ef60bf171d08bacf86cc0.jpg
I, [2023-11-18T09:36:13.306553 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/Dinersclub-d15cb3f857064f67a991206495dc88612da0e15f763da32b437eac0002725ccd.jpg
I, [2023-11-18T09:36:13.307877 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/JCB-e4a6597415f7135ca40fde4e42debb4d8bdeda38d90cd6ddb35c2fe2ac8f4a2b.jpg
I, [2023-11-18T09:36:13.309234 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/Mastercard-8e92df938a3f9a819444114264e72348e8ad64f9628d72f47689d534767e8a35.jpg
I, [2023-11-18T09:36:13.310297 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/VISA-45260eac5f83f672f39c640f9b454e86a734d065e466dd3ceae76640afbfd3ce.jpg
I, [2023-11-18T09:36:13.311652 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/blank-c72bb658374d71d2314c71d417385edfa7d252ed52c49460d1f57837bfda92ab.jpg
I, [2023-11-18T09:36:13.312938 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/blank-a770ffa820f535d837bf3a0293fc1fd6ff40bb379663a9a7d23d260fc59ece73.png
I, [2023-11-18T09:36:13.314194 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/home/background01-8fcd7c24bc064df0145b448cf8bc4ce0d9f8d7a6995b3e2d5302435d37acd356.jpg
I, [2023-11-18T09:36:13.315796 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/icon_default_avatar-57ea36b54d97f70cbbee69b5297050fae8ed6056d3c4e4847fbb3cbd9be74454.jpg
I, [2023-11-18T09:36:13.317062 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/star-half-5d741c166167d0b713c844d944787391f46d2be605f25ffb2de8853e30802457.png
I, [2023-11-18T09:36:13.318325 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/star-off-545623b9692f7e1a13280ea370b31bd9dd324abb4181f98497134795d012d472.png
I, [2023-11-18T09:36:13.319253 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/star-on-95de31432e40ba75764bce2ab31dcd90df5815ad58d64e4cc8a2c9399f78f572.png
I, [2023-11-18T09:36:13.320454 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stripe_button-c23acff66164384282a8b88b787ce3f8742c2046bf9d9bde50dab80c1ac20b88.png
I, [2023-11-18T09:36:13.321266 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/actiontext-85c498129d592c8228f6b7c70237f6bfb6a79728da8339b635ef81bf91777571.css
I, [2023-11-18T09:36:13.321661 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/actiontext-85c498129d592c8228f6b7c70237f6bfb6a79728da8339b635ef81bf91777571.css.gz
I, [2023-11-18T09:36:13.322079 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/application-aac0d586b76bb3fdb00e9a3f3a45e24ea3198d7bed6312669c9558d5f440fe3f.css
I, [2023-11-18T09:36:13.322269 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/application-aac0d586b76bb3fdb00e9a3f3a45e24ea3198d7bed6312669c9558d5f440fe3f.css.gz
I, [2023-11-18T09:36:13.322682 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/application-57fc78ded067850ad99a95f2d50bbba86520d67b0f6ad12a0f414ccb6f9b3029.js
I, [2023-11-18T09:36:13.322950 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/application-57fc78ded067850ad99a95f2d50bbba86520d67b0f6ad12a0f414ccb6f9b3029.js.gz
I, [2023-11-18T09:36:13.323655 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/channels/consumer-b0ce945e7ae055dba9cceb062a47080dd9c7794a600762c19d38dbde3ba8ff0d.js
I, [2023-11-18T09:36:13.324502 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/channels/consumer-b0ce945e7ae055dba9cceb062a47080dd9c7794a600762c19d38dbde3ba8ff0d.js.gz
I, [2023-11-18T09:36:13.325089 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/channels/index-783fbd5902dba39f284fdf9b459f6439a8c04b8788b72eb1188b28ca165e3e50.js
I, [2023-11-18T09:36:13.325752 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/channels/index-783fbd5902dba39f284fdf9b459f6439a8c04b8788b72eb1188b28ca165e3e50.js.gz
I, [2023-11-18T09:36:13.327332 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/channels/notifications-41eaec1fbfe316484cc57c24e0cdb1a77b80678ce1e2c9abb0f0c1ccc148f192.js
I, [2023-11-18T09:36:13.328096 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/channels/notifications-41eaec1fbfe316484cc57c24e0cdb1a77b80678ce1e2c9abb0f0c1ccc148f192.js.gz
I, [2023-11-18T09:36:13.328536 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/channels/notifications_channel-f9d66e1b244e77dc8a033ec35acc3fd981505ccddbeee68da4807d4fe734031b.js
I, [2023-11-18T09:36:13.329164 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/channels/notifications_channel-f9d66e1b244e77dc8a033ec35acc3fd981505ccddbeee68da4807d4fe734031b.js.gz
I, [2023-11-18T09:36:13.329572 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/controllers/application-368d98631bccbf2349e0d4f8269afb3fe9625118341966de054759d96ea86c7e.js
I, [2023-11-18T09:36:13.330047 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/controllers/application-368d98631bccbf2349e0d4f8269afb3fe9625118341966de054759d96ea86c7e.js.gz
I, [2023-11-18T09:36:13.331005 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/controllers/hello_controller-549135e8e7c683a538c3d6d517339ba470fcfb79d62f738a0a089ba41851a554.js
I, [2023-11-18T09:36:13.331415 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/controllers/hello_controller-549135e8e7c683a538c3d6d517339ba470fcfb79d62f738a0a089ba41851a554.js.gz
I, [2023-11-18T09:36:13.332002 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/controllers/index-2db729dddcc5b979110e98de4b6720f83f91a123172e87281d5a58410fc43806.js
I, [2023-11-18T09:36:13.332567 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/controllers/index-2db729dddcc5b979110e98de4b6720f83f91a123172e87281d5a58410fc43806.js.gz
I, [2023-11-18T09:36:13.333333 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js
I, [2023-11-18T09:36:13.334194 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js.gz
I, [2023-11-18T09:36:13.334755 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/turbo.min-dfd93b3092d1d0ff56557294538d069bdbb28977d3987cb39bc0dd892f32fc57.js
I, [2023-11-18T09:36:13.335536 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/turbo.min-dfd93b3092d1d0ff56557294538d069bdbb28977d3987cb39bc0dd892f32fc57.js.gz
I, [2023-11-18T09:36:13.336116 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/turbo.min.js-24086855a1740f1ed123d14c033071ab88963d4eb7c9875ea45441d48d8a79d2.map
I, [2023-11-18T09:36:13.337338 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/turbo.min.js-24086855a1740f1ed123d14c033071ab88963d4eb7c9875ea45441d48d8a79d2.map.gz
I, [2023-11-18T09:36:13.339702 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/actiontext-0e17dea0bbcecdc975d4166ad0414e9b0b08f89797093fd2402ca7a4b53f2841.js
I, [2023-11-18T09:36:13.340815 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/actiontext-0e17dea0bbcecdc975d4166ad0414e9b0b08f89797093fd2402ca7a4b53f2841.js.gz
I, [2023-11-18T09:36:13.341415 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/actiontext.esm-492b22a807659dd6cf22068522daaf906111f90474591bd48c75d515dd40fbca.js
I, [2023-11-18T09:36:13.342537 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/actiontext.esm-492b22a807659dd6cf22068522daaf906111f90474591bd48c75d515dd40fbca.js.gz
I, [2023-11-18T09:36:13.344109 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/trix-e17a480fcb4e30c8571f0fed42dc81de5faeef93755ca30fe9623eb3f5c709e5.js
I, [2023-11-18T09:36:13.345270 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/trix-e17a480fcb4e30c8571f0fed42dc81de5faeef93755ca30fe9623eb3f5c709e5.js.gz
I, [2023-11-18T09:36:13.345687 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/trix-2ab7ffaad006bd1dbfa11372e2ec5a059fc2ca96c0f3934bedae61706259bfcb.css
I, [2023-11-18T09:36:13.346237 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/trix-2ab7ffaad006bd1dbfa11372e2ec5a059fc2ca96c0f3934bedae61706259bfcb.css.gz
I, [2023-11-18T09:36:13.346479 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/es-module-shims-69d0cb4dc1d01c9dc2ed52f2ab66874fd545fe7e35c7841009b4e8c55f231dee.js
I, [2023-11-18T09:36:13.348567 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/es-module-shims-69d0cb4dc1d01c9dc2ed52f2ab66874fd545fe7e35c7841009b4e8c55f231dee.js.gz
I, [2023-11-18T09:36:13.349944 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/es-module-shims.min-4ca9b3dd5e434131e3bb4b0c1d7dff3bfd4035672a5086deec6f73979a49be73.js
I, [2023-11-18T09:36:13.350919 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/es-module-shims.min-4ca9b3dd5e434131e3bb4b0c1d7dff3bfd4035672a5086deec6f73979a49be73.js.gz
I, [2023-11-18T09:36:13.351162 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/es-module-shims.js-c69f1a5dd068dfc08a4cedc0ad77b792985bf256e162852bd03cdf764b666c4a.map
I, [2023-11-18T09:36:13.351361 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/es-module-shims.js-c69f1a5dd068dfc08a4cedc0ad77b792985bf256e162852bd03cdf764b666c4a.map.gz
I, [2023-11-18T09:36:13.351501 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus-f75215805563870a61ee9dc5a207ce46d4675c7e667558a54344fd1e7baa697f.js
I, [2023-11-18T09:36:13.351580 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus-f75215805563870a61ee9dc5a207ce46d4675c7e667558a54344fd1e7baa697f.js.gz
I, [2023-11-18T09:36:13.351668 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus-autoloader-c584942b568ba74879da31c7c3d51366737bacaf6fbae659383c0a5653685693.js
I, [2023-11-18T09:36:13.351733 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus-autoloader-c584942b568ba74879da31c7c3d51366737bacaf6fbae659383c0a5653685693.js.gz
I, [2023-11-18T09:36:13.353004 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus-importmap-autoloader-db2076c783bf2dbee1226e2add52fef290b5d31b5bcd1edd999ac8a6dd31c44a.js
I, [2023-11-18T09:36:13.355480 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus-importmap-autoloader-db2076c783bf2dbee1226e2add52fef290b5d31b5bcd1edd999ac8a6dd31c44a.js.gz
I, [2023-11-18T09:36:13.355765 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus-loading-3576ce92b149ad5d6959438c6f291e2426c86df3b874c525b30faad51b0d96b3.js
I, [2023-11-18T09:36:13.355914 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus-loading-3576ce92b149ad5d6959438c6f291e2426c86df3b874c525b30faad51b0d96b3.js.gz
I, [2023-11-18T09:36:13.356085 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus.min-dd364f16ec9504dfb72672295637a1c8838773b01c0b441bd41008124c407894.js
I, [2023-11-18T09:36:13.356184 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus.min-dd364f16ec9504dfb72672295637a1c8838773b01c0b441bd41008124c407894.js.gz
I, [2023-11-18T09:36:13.360010 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus-autoloader-c584942b568ba74879da31c7c3d51366737bacaf6fbae659383c0a5653685693.js.gz
I, [2023-11-18T09:36:13.360941 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus-importmap-autoloader-db2076c783bf2dbee1226e2add52fef290b5d31b5bcd1edd999ac8a6dd31c44a.js
I, [2023-11-18T09:36:13.363087 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus-importmap-autoloader-db2076c783bf2dbee1226e2add52fef290b5d31b5bcd1edd999ac8a6dd31c44a.js.gz
I, [2023-11-18T09:36:13.363841 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus-loading-3576ce92b149ad5d6959438c6f291e2426c86df3b874c525b30faad51b0d96b3.js.gz
I, [2023-11-18T09:36:13.364417 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus.min.js-2cc63625fa177963b45da974806e7aee846cbf1d4930815733d0fdf3fb232325.map
I, [2023-11-18T09:36:13.365813 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/stimulus.min.js-2cc63625fa177963b45da974806e7aee846cbf1d4930815733d0fdf3fb232325.map.gz
I, [2023-11-18T09:36:13.369218 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/activestorage-210320b03bffc155ca1782c116437391c929c7c5b5c66ee4f4c7a826733070a1.js
I, [2023-11-18T09:36:13.369452 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/activestorage-210320b03bffc155ca1782c116437391c929c7c5b5c66ee4f4c7a826733070a1.js.gz
I, [2023-11-18T09:36:13.369643 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/activestorage.esm-1e3c46a0710fa7f44a7ced2fc61af4416147823859c9e65b69cd8a91811e678e.js
I, [2023-11-18T09:36:13.369743 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/activestorage.esm-1e3c46a0710fa7f44a7ced2fc61af4416147823859c9e65b69cd8a91811e678e.js.gz
I, [2023-11-18T09:36:13.369882 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/actioncable-b561134b2bfb0d095c5329001e894d6d433544b2a0f4276e0e50591afa62bb46.js
I, [2023-11-18T09:36:13.369970 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/actioncable-b561134b2bfb0d095c5329001e894d6d433544b2a0f4276e0e50591afa62bb46.js.gz
I, [2023-11-18T09:36:13.374279 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/actioncable.esm-642a147cbb90e93c6f2bcaeeb817a4a263aa4f971a6d95795835270bd8519dfd.js
I, [2023-11-18T09:36:13.374551 #9761]  INFO -- : Writing /Users/heyjude/Desktop/Rails7_1/VacationRental7/public/assets/actioncable.esm-642a147cbb90e93c6f2bcaeeb817a4a263aa4f971a6d95795835270bd8519dfd.js.gz



コンパイルテストに成功したら、アプリケーションをGithubにコミットします。
コミットの手順は以下の通りでお願いします。


ソース管理を選択します。

ソース管理
ソース管理



「+」をクリックして全ての変更をステージします。

全ての変更をステージ
全ての変更をステージ



コミットネームを入力します。

コミットネームを入力
コミットネームを入力



チェックマークをクリックしてコミットします。

コミット
コミット



下部にある同期ボタンをクリックしてGitと同期します。

Gitと同期
Gitと同期



Gitページの確認

ご自分のGitページを確認して下さい
ご自分のGitページを確認して下さい



45 | production.rbの設定】 << 【ホーム】 >> 【47 | Herokuの接続とPush




↓↓クリックして頂けると励みになります。

YAE C5 CLINIC(札幌美容クリニック)

関連記事(外部サイト)