Deployment to Heroku success but when I open the URL, I get a blank page with the word "Error" on it? - heroku

I am deploying my Heroku web app, but am running into an issue. It deploys successfully on Heroku, but then when I try to open the web app/URL, I simply get a blank page with the word "Error" on it.
Here are the logs from Heroku, any ideas what could get going wrong?:
› Warning: heroku update available from 7.59.0 to 7.59.2.
2021-11-24T10:49:32.042026+00:00 app[web.1]: 10.1.20.123 - - [24/Nov/2021:10:49:32 +0000] "GET /twitter HTTP/1.1" 302 250 "-" "Mozilla/5.0 (compatible; DashLinkPreviews/5.1;)"
2021-11-24T10:49:32.042318+00:00 heroku[router]: at=info method=GET path="/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=e5293635-8393-4174-ab0a-e3bc9b002098 fwd="52.89.103.56" dyno=web.1 connect=0ms service=2ms status=302 bytes=488 protocol=https
2021-11-24T10:49:32.066448+00:00 app[web.1]: 10.1.23.180 - - [24/Nov/2021:10:49:32 +0000] "HEAD /twitter_login/twitter HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18"
2021-11-24T10:49:32.066666+00:00 heroku[router]: at=info method=HEAD path="/twitter_login/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=14607c62-9237-4da5-9f10-fbeab9579597 fwd="52.89.103.56" dyno=web.1 connect=0ms service=144ms status=302 bytes=248 protocol=https
2021-11-24T10:49:32.482378+00:00 app[web.1]: 10.1.36.190 - - [24/Nov/2021:10:49:32 +0000] "GET /twitter_login/twitter HTTP/1.1" 302 364 "-" "Mozilla/5.0 (compatible; DashLinkPreviews/5.1;)"
2021-11-24T10:49:32.482595+00:00 heroku[router]: at=info method=GET path="/twitter_login/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=e88d2332-b22f-4d65-87c3-6ab092eda352 fwd="52.89.103.56" dyno=web.1 connect=0ms service=166ms status=302 bytes=612 protocol=https
2021-11-24T10:49:32.916388+00:00 app[web.1]: 10.1.13.177 - - [24/Nov/2021:10:49:32 +0000] "GET /twitter HTTP/1.1" 302 250 "-" "Mozilla/5.0 (compatible; DashLinkPreviews/5.1;)"
2021-11-24T10:49:32.916515+00:00 heroku[router]: at=info method=GET path="/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=20042fec-c958-4bbe-89d2-00f65ba028bf fwd="52.89.103.56" dyno=web.1 connect=0ms service=2ms status=302 bytes=488 protocol=https
2021-11-24T10:49:33.377172+00:00 heroku[router]: at=info method=GET path="/twitter_login/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=6f108754-d1c1-4462-b881-e7b36c8fdbe0 fwd="52.89.103.56" dyno=web.1 connect=0ms service=158ms status=302 bytes=612 protocol=https
2021-11-24T10:49:33.377192+00:00 app[web.1]: 10.1.82.149 - - [24/Nov/2021:10:49:33 +0000] "GET /twitter_login/twitter HTTP/1.1" 302 364 "-" "Mozilla/5.0 (compatible; DashLinkPreviews/5.1;)"
2021-11-24T10:51:54.000000+00:00 app[api]: Build started by user patrick_chong#hotmail.co.uk
2021-11-24T10:52:15.595446+00:00 app[api]: Deploy 2982047e by user patrick_chong#hotmail.co.uk
2021-11-24T10:52:15.595446+00:00 app[api]: Release v7 created by user patrick_chong#hotmail.co.uk
2021-11-24T10:52:16.184288+00:00 heroku[web.1]: Restarting
2021-11-24T10:52:16.558277+00:00 heroku[web.1]: State changed from up to starting
2021-11-24T10:52:17.303889+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2021-11-24T10:52:17.427599+00:00 app[web.1]: [2021-11-24 10:52:17 +0000] [10] [INFO] Worker exiting (pid: 10)
2021-11-24T10:52:17.427614+00:00 app[web.1]: [2021-11-24 10:52:17 +0000] [9] [INFO] Worker exiting (pid: 9)
2021-11-24T10:52:17.427615+00:00 app[web.1]: [2021-11-24 10:52:17 +0000] [4] [INFO] Handling signal: term
2021-11-24T10:52:17.430015+00:00 app[web.1]: [2021-11-24 10:52:17 +0000] [4] [WARNING] Worker with pid 10 was terminated due to signal 15
2021-11-24T10:52:17.527907+00:00 app[web.1]: [2021-11-24 10:52:17 +0000] [4] [INFO] Shutting down: Master
2021-11-24T10:52:17.662882+00:00 heroku[web.1]: Process exited with status 0
2021-11-24T10:52:20.111502+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2021-11-24T10:52:21.319042+00:00 app[web.1]: [2021-11-24 10:52:21 +0000] [4] [INFO] Starting gunicorn 20.1.0
2021-11-24T10:52:21.319607+00:00 app[web.1]: [2021-11-24 10:52:21 +0000] [4] [INFO] Listening at: http://0.0.0.0:28290 (4)
2021-11-24T10:52:21.319669+00:00 app[web.1]: [2021-11-24 10:52:21 +0000] [4] [INFO] Using worker: sync
2021-11-24T10:52:21.322754+00:00 app[web.1]: [2021-11-24 10:52:21 +0000] [9] [INFO] Booting worker with pid: 9
2021-11-24T10:52:21.399802+00:00 app[web.1]: [2021-11-24 10:52:21 +0000] [10] [INFO] Booting worker with pid: 10
2021-11-24T10:52:21.743544+00:00 heroku[web.1]: State changed from starting to up
2021-11-24T10:52:24.000000+00:00 app[api]: Build succeeded
2021-11-24T10:52:32.574053+00:00 app[web.1]: 10.1.43.202 - - [24/Nov/2021:10:52:32 +0000] "GET / HTTP/1.1" 302 222 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15"
2021-11-24T10:52:32.574861+00:00 heroku[router]: at=info method=GET path="/" host=twitter-web-scrapper95823.herokuapp.com request_id=9a1a55fb-86e3-4e35-96e8-5f8090d237fe fwd="185.69.144.36" dyno=web.1 connect=0ms service=2ms status=302 bytes=446 protocol=https
2021-11-24T10:52:32.802757+00:00 app[web.1]: <Response [401]>
2021-11-24T10:52:32.804261+00:00 heroku[router]: at=info method=GET path="/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=3cee9316-b084-42ef-8636-c5b050264bc3 fwd="185.69.144.36" dyno=web.1 connect=0ms service=92ms status=200 bytes=181 protocol=https
2021-11-24T10:52:32.805749+00:00 app[web.1]: 10.1.31.245 - - [24/Nov/2021:10:52:32 +0000] "GET /twitter HTTP/1.1" 200 14 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15"
2021-11-24T10:54:35.365273+00:00 app[web.1]: 10.1.82.236 - - [24/Nov/2021:10:54:35 +0000] "GET /twitter HTTP/1.1" 302 250 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:54:35.367226+00:00 heroku[router]: at=info method=GET path="/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=3b1f34ec-c249-4346-9670-729ba1656693 fwd="103.132.244.181" dyno=web.1 connect=0ms service=3ms status=302 bytes=488 protocol=https
2021-11-24T10:54:35.821123+00:00 app[web.1]: 10.1.82.236 - - [24/Nov/2021:10:54:35 +0000] "GET /twitter_login/twitter HTTP/1.1" 302 364 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:54:35.822983+00:00 heroku[router]: at=info method=GET path="/twitter_login/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=b4d69734-2354-4b5d-84bd-cd806aa26953 fwd="103.132.244.181" dyno=web.1 connect=0ms service=213ms status=302 bytes=612 protocol=https
2021-11-24T10:54:38.917827+00:00 app[web.1]: 10.1.82.236 - - [24/Nov/2021:10:54:38 +0000] "GET /twitter_login/twitter/authorized?oauth_token=Jv_wVgAAAAABRQePAAABfVGVQMs&oauth_verifier=2YDe0VP1LE1XcO5EIDnGmbSVOd6iY7D5 HTTP/1.1" 302 208 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:54:38.919403+00:00 heroku[router]: at=info method=GET path="/twitter_login/twitter/authorized?oauth_token=Jv_wVgAAAAABRQePAAABfVGVQMs&oauth_verifier=2YDe0VP1LE1XcO5EIDnGmbSVOd6iY7D5" host=twitter-web-scrapper95823.herokuapp.com request_id=53b9b036-4c30-40d9-9f68-3866e1cb1bdc fwd="103.132.244.181" dyno=web.1 connect=0ms service=554ms status=302 bytes=754 protocol=https
2021-11-24T10:54:39.139120+00:00 app[web.1]: 10.1.82.236 - - [24/Nov/2021:10:54:39 +0000] "GET / HTTP/1.1" 302 222 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:54:39.141093+00:00 heroku[router]: at=info method=GET path="/" host=twitter-web-scrapper95823.herokuapp.com request_id=547ed339-97a3-4a7c-b705-ca6d2a7d4521 fwd="103.132.244.181" dyno=web.1 connect=0ms service=2ms status=302 bytes=446 protocol=https
2021-11-24T10:54:39.504505+00:00 app[web.1]: <Response [200]>
2021-11-24T10:54:39.626922+00:00 app[web.1]: 10.1.82.236 - - [24/Nov/2021:10:54:39 +0000] "GET /twitter HTTP/1.1" 200 28494 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:54:39.628757+00:00 heroku[router]: at=info method=GET path="/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=8c62f1a4-daa9-4a23-b3d6-794c6cedb093 fwd="103.132.244.181" dyno=web.1 connect=0ms service=268ms status=200 bytes=28664 protocol=https
2021-11-24T10:54:40.190311+00:00 app[web.1]: 10.1.82.236 - - [24/Nov/2021:10:54:40 +0000] "GET /assets/fonts/fontawesome5-overrides.min.css HTTP/1.1" 404 232 "https://twitter-web-scrapper95823.herokuapp.com/twitter" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:54:40.192314+00:00 heroku[router]: at=info method=GET path="/assets/fonts/fontawesome5-overrides.min.css" host=twitter-web-scrapper95823.herokuapp.com request_id=2cbb0178-b50a-4bf2-aced-03f88cd77c36 fwd="103.132.244.181" dyno=web.1 connect=0ms service=2ms status=404 bytes=393 protocol=https
2021-11-24T10:54:40.802549+00:00 app[web.1]: 10.1.82.236 - - [24/Nov/2021:10:54:40 +0000] "GET /favicon.ico HTTP/1.1" 404 232 "https://twitter-web-scrapper95823.herokuapp.com/twitter" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:54:40.804396+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=twitter-web-scrapper95823.herokuapp.com request_id=490ef232-d3fc-4b79-99e4-9e2f4b6c6b4e fwd="103.132.244.181" dyno=web.1 connect=0ms service=5ms status=404 bytes=393 protocol=https
2021-11-24T10:55:03.133764+00:00 app[web.1]: <Response [200]>
2021-11-24T10:55:03.312950+00:00 app[web.1]: 10.1.82.236 - - [24/Nov/2021:10:55:03 +0000] "GET /twitter HTTP/1.1" 200 28558 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:55:03.314591+00:00 heroku[router]: at=info method=GET path="/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=dae53511-b343-45b9-90e2-ceee62e264cf fwd="103.132.244.181" dyno=web.1 connect=0ms service=363ms status=200 bytes=28728 protocol=https
2021-11-24T10:55:03.833838+00:00 app[web.1]: 10.1.82.236 - - [24/Nov/2021:10:55:03 +0000] "GET /assets/fonts/fontawesome5-overrides.min.css HTTP/1.1" 404 232 "https://twitter-web-scrapper95823.herokuapp.com/twitter" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:55:03.835911+00:00 heroku[router]: at=info method=GET path="/assets/fonts/fontawesome5-overrides.min.css" host=twitter-web-scrapper95823.herokuapp.com request_id=9a03f7b4-ede8-40e8-89ce-67faa4eb4135 fwd="103.132.244.181" dyno=web.1 connect=0ms service=5ms status=404 bytes=393 protocol=https
2021-11-24T10:55:04.070467+00:00 app[web.1]: 10.1.82.236 - - [24/Nov/2021:10:55:04 +0000] "GET /favicon.ico HTTP/1.1" 404 232 "https://twitter-web-scrapper95823.herokuapp.com/twitter" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:55:04.072305+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=twitter-web-scrapper95823.herokuapp.com request_id=5999ece6-0e4f-49d4-b31d-0b6241926b11 fwd="103.132.244.181" dyno=web.1 connect=0ms service=4ms status=404 bytes=393 protocol=https
2021-11-24T10:55:25.030182+00:00 app[web.1]: 10.1.47.95 - - [24/Nov/2021:10:55:25 +0000] "GET /twitter HTTP/1.1" 302 250 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:55:25.030289+00:00 heroku[router]: at=info method=GET path="/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=fbf9fc5b-0ec9-43c0-8205-53dfce39e3e3 fwd="103.132.244.181" dyno=web.1 connect=0ms service=2ms status=302 bytes=488 protocol=https
2021-11-24T10:55:25.400682+00:00 heroku[router]: at=info method=GET path="/twitter_login/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=8a0578b7-5cd2-4953-bd2b-d103c0917358 fwd="103.132.244.181" dyno=web.1 connect=0ms service=162ms status=302 bytes=612 protocol=https
2021-11-24T10:55:25.400773+00:00 app[web.1]: 10.1.47.95 - - [24/Nov/2021:10:55:25 +0000] "GET /twitter_login/twitter HTTP/1.1" 302 364 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:55:33.987022+00:00 heroku[router]: at=info method=GET path="/twitter_login/twitter/authorized?oauth_token=Na9QiAAAAAABRQePAAABfVGWAok&oauth_verifier=15S65hCtV5LE9VmTrKBxM2YJaX1Ba5SZ" host=twitter-web-scrapper95823.herokuapp.com request_id=6b350b6a-87fa-4c8e-9037-491d4d6c6b8b fwd="103.132.244.181" dyno=web.1 connect=0ms service=406ms status=302 bytes=754 protocol=https
2021-11-24T10:55:33.987120+00:00 app[web.1]: 10.1.47.95 - - [24/Nov/2021:10:55:33 +0000] "GET /twitter_login/twitter/authorized?oauth_token=Na9QiAAAAAABRQePAAABfVGWAok&oauth_verifier=15S65hCtV5LE9VmTrKBxM2YJaX1Ba5SZ HTTP/1.1" 302 208 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:55:34.217622+00:00 app[web.1]: 10.1.47.95 - - [24/Nov/2021:10:55:34 +0000] "GET / HTTP/1.1" 302 222 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:55:34.217825+00:00 heroku[router]: at=info method=GET path="/" host=twitter-web-scrapper95823.herokuapp.com request_id=0efdcaf2-5113-42ce-b69d-aaa6478f3daa fwd="103.132.244.181" dyno=web.1 connect=0ms service=3ms status=302 bytes=446 protocol=https
2021-11-24T10:55:35.110572+00:00 app[web.1]: <Response [200]>
2021-11-24T10:55:35.239835+00:00 app[web.1]: 10.1.47.95 - - [24/Nov/2021:10:55:35 +0000] "GET /twitter HTTP/1.1" 200 28567 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:55:35.240115+00:00 heroku[router]: at=info method=GET path="/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=98de4b71-04a6-454a-84b6-1135c20be181 fwd="103.132.244.181" dyno=web.1 connect=0ms service=292ms status=200 bytes=28737 protocol=https
2021-11-24T10:55:35.876216+00:00 app[web.1]: 10.1.47.95 - - [24/Nov/2021:10:55:35 +0000] "GET /assets/fonts/fontawesome5-overrides.min.css HTTP/1.1" 404 232 "https://twitter-web-scrapper95823.herokuapp.com/twitter" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:55:35.877387+00:00 heroku[router]: at=info method=GET path="/assets/fonts/fontawesome5-overrides.min.css" host=twitter-web-scrapper95823.herokuapp.com request_id=14333b78-c492-4af2-84bb-400c7f972f6e fwd="103.132.244.181" dyno=web.1 connect=0ms service=3ms status=404 bytes=393 protocol=https
2021-11-24T10:55:37.587393+00:00 app[web.1]: 10.1.47.95 - - [24/Nov/2021:10:55:37 +0000] "GET /favicon.ico HTTP/1.1" 404 232 "https://twitter-web-scrapper95823.herokuapp.com/twitter" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"
2021-11-24T10:55:37.587494+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=twitter-web-scrapper95823.herokuapp.com request_id=dc855a6f-fd9a-4bac-b58d-da98f722ccdc fwd="103.132.244.181" dyno=web.1 connect=2ms service=2ms status=404 bytes=393 protocol=https
2021-11-24T10:57:52.929244+00:00 heroku[router]: at=info method=HEAD path="/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=0d7e76a3-4f2c-47b9-ac95-63e4a03c9469 fwd="34.217.253.81" dyno=web.1 connect=0ms service=2ms status=302 bytes=238 protocol=https
2021-11-24T10:57:52.930464+00:00 app[web.1]: 10.1.8.241 - - [24/Nov/2021:10:57:52 +0000] "HEAD /twitter HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18"
2021-11-24T10:57:53.388944+00:00 app[web.1]: 10.1.86.74 - - [24/Nov/2021:10:57:53 +0000] "HEAD /twitter_login/twitter HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18"
2021-11-24T10:57:53.389860+00:00 heroku[router]: at=info method=HEAD path="/twitter_login/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=7065706d-356f-4cb9-b5b0-1a4f05cf073d fwd="34.217.253.81" dyno=web.1 connect=0ms service=170ms status=302 bytes=248 protocol=https
2021-11-24T11:19:04.000000+00:00 app[api]: Build started by user patrick_chong#hotmail.co.uk
2021-11-24T11:19:25.539500+00:00 app[api]: Deploy 71d3eda0 by user patrick_chong#hotmail.co.uk
2021-11-24T11:19:25.539500+00:00 app[api]: Release v8 created by user patrick_chong#hotmail.co.uk
2021-11-24T11:19:26.083179+00:00 heroku[web.1]: Restarting
2021-11-24T11:19:26.149732+00:00 heroku[web.1]: State changed from up to starting
2021-11-24T11:19:27.103543+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2021-11-24T11:19:27.154992+00:00 app[web.1]: [2021-11-24 11:19:27 +0000] [9] [INFO] Worker exiting (pid: 9)
2021-11-24T11:19:27.155835+00:00 app[web.1]: [2021-11-24 11:19:27 +0000] [4] [INFO] Handling signal: term
2021-11-24T11:19:27.156773+00:00 app[web.1]: [2021-11-24 11:19:27 +0000] [10] [INFO] Worker exiting (pid: 10)
2021-11-24T11:19:27.259037+00:00 app[web.1]: [2021-11-24 11:19:27 +0000] [4] [INFO] Shutting down: Master
2021-11-24T11:19:27.883321+00:00 heroku[web.1]: Process exited with status 0
2021-11-24T11:19:29.212075+00:00 heroku[web.1]: Starting process with command `gunicorn app:app`
2021-11-24T11:19:31.173921+00:00 app[web.1]: [2021-11-24 11:19:31 +0000] [4] [INFO] Starting gunicorn 20.1.0
2021-11-24T11:19:31.174465+00:00 app[web.1]: [2021-11-24 11:19:31 +0000] [4] [INFO] Listening at: http://0.0.0.0:52315 (4)
2021-11-24T11:19:31.174523+00:00 app[web.1]: [2021-11-24 11:19:31 +0000] [4] [INFO] Using worker: sync
2021-11-24T11:19:31.178139+00:00 app[web.1]: [2021-11-24 11:19:31 +0000] [9] [INFO] Booting worker with pid: 9
2021-11-24T11:19:31.230813+00:00 app[web.1]: [2021-11-24 11:19:31 +0000] [10] [INFO] Booting worker with pid: 10
2021-11-24T11:19:31.835296+00:00 heroku[web.1]: State changed from starting to up
2021-11-24T11:19:34.000000+00:00 app[api]: Build succeeded
2021-11-24T11:19:40.739464+00:00 heroku[router]: at=info method=GET path="/" host=twitter-web-scrapper95823.herokuapp.com request_id=27a313c0-7539-4053-9c5a-5e5a8b05085e fwd="185.69.144.36" dyno=web.1 connect=0ms service=2ms status=302 bytes=446 protocol=https
2021-11-24T11:19:40.739795+00:00 app[web.1]: 10.1.83.184 - - [24/Nov/2021:11:19:40 +0000] "GET / HTTP/1.1" 302 222 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15"
2021-11-24T11:19:40.949308+00:00 app[web.1]: <Response [401]>
2021-11-24T11:19:40.950472+00:00 heroku[router]: at=info method=GET path="/twitter" host=twitter-web-scrapper95823.herokuapp.com request_id=b9d01f77-76ae-4ec0-8285-831481a22ee4 fwd="185.69.144.36" dyno=web.1 connect=0ms service=93ms status=200 bytes=181 protocol=https
2021-11-24T11:19:40.951162+00:00 app[web.1]: 10.1.83.184 - - [24/Nov/2021:11:19:40 +0000] "GET /twitter HTTP/1.1" 200 14 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15
"
Do let me know if I should add any more details around the code or deployment. Not sure if this helps, but when I try to run the app on my local drive I get the same error. I also tested it with different twitter accounts, but I run into the same error each time.
To add some context, I am using the Twitter API to scrape the top 20 tweets of the user.
When I run the code on my local terminal, I get the following:
(base) patrickchong#Patricks-MacBook-Pro TwitterWebScrapper % flask run
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [25/Nov/2021 14:41:38] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:38] "GET /twitter HTTP/1.1" 302 -
OAuth 1 request token error: Token request failed with code 403, response was '<?xml version='1.0' encoding='UTF-8'?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors>'.
127.0.0.1 - - [25/Nov/2021 14:41:38] "GET /twitter_login/twitter HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:38] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:38] "GET /twitter HTTP/1.1" 302 -
OAuth 1 request token error: Token request failed with code 403, response was '<?xml version='1.0' encoding='UTF-8'?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors>'.
127.0.0.1 - - [25/Nov/2021 14:41:39] "GET /twitter_login/twitter HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:39] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:39] "GET /twitter HTTP/1.1" 302 -
OAuth 1 request token error: Token request failed with code 403, response was '<?xml version='1.0' encoding='UTF-8'?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors>'.
127.0.0.1 - - [25/Nov/2021 14:41:39] "GET /twitter_login/twitter HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:39] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:39] "GET /twitter HTTP/1.1" 302 -
OAuth 1 request token error: Token request failed with code 403, response was '<?xml version='1.0' encoding='UTF-8'?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors>'.
127.0.0.1 - - [25/Nov/2021 14:41:39] "GET /twitter_login/twitter HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:39] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:39] "GET /twitter HTTP/1.1" 302 -
OAuth 1 request token error: Token request failed with code 403, response was '<?xml version='1.0' encoding='UTF-8'?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors>'.
127.0.0.1 - - [25/Nov/2021 14:41:39] "GET /twitter_login/twitter HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:39] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:39] "GET /twitter HTTP/1.1" 302 -
OAuth 1 request token error: Token request failed with code 403, response was '<?xml version='1.0' encoding='UTF-8'?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors>'.
127.0.0.1 - - [25/Nov/2021 14:41:40] "GET /twitter_login/twitter HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:40] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [25/Nov/2021 14:41:40] "GET /twitter HTTP/1.1" 302 -
OAuth 1 request token error: Token request failed with code 403, response was '<?xml version='1.0' encoding='UTF-8'?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors>'.
127.0.0.1 - - [25/Nov/2021 14:41:40] "GET /twitter_login/twitter HTTP/1.1" 302 -

Related

Deploying Rails App to Heroku Keeps Crashing

This answer seems to have been answered in various ways, but none that seemed to fit my exact issue. I am using the app from RailsApps https://github.com/RailsApps/rails-devise-pundit
The app works perfectly on my local Ubuntu 14.04 machine, but when I deploy it to Heroku, I get an 'application error' on the page my app should have been started. I ran 'heroku logs' but can't be sure what the exact issue is. Below is my log as well as my Gem file. Any help would be greatly appreciated. Thank you.
Here is My Log
2014-07-23T07:01:02.819470+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:241:in `load'
2014-07-23T07:01:02.819467+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:241:in `block in load'
2014-07-23T07:01:02.819544+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
2014-07-23T07:01:02.819471+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:648:in `block in load_config_initializer'
2014-07-23T07:01:02.819499+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
2014-07-23T07:01:02.819476+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:647:in `load_config_initializer'
2014-07-23T07:01:02.819485+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
2014-07-23T07:01:02.819488+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run'
2014-07-23T07:01:02.819497+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:418:in `block (2 levels) in each_strongly_connected_component_from'
2014-07-23T07:01:02.819550+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `call'
2014-07-23T07:01:02.819553+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
2014-07-23T07:01:02.819551+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
2014-07-23T07:01:02.819554+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
2014-07-23T07:01:02.819559+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
2014-07-23T07:01:02.819560+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-07-23T07:01:02.819564+00:00 app[web.1]: from config.ru:4:in `require'
2014-07-23T07:01:02.819569+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2014-07-23T07:01:02.819570+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2014-07-23T07:01:02.819574+00:00 app[web.1]: from config.ru:1:in `new'
2014-07-23T07:01:02.819566+00:00 app[web.1]: from config.ru:4:in `block in <main>'
2014-07-23T07:01:02.819511+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:411:in `each_strongly_connected_component_from'
2014-07-23T07:01:02.819482+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:611:in `each'
2014-07-23T07:01:02.819580+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn.rb:48:in `block in builder'
2014-07-23T07:01:02.819583+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:764:in `call'
2014-07-23T07:01:02.
819575+00:00 app[web.1]: from config.ru:1:in `<main>'
2014-07-23T07:01:02.819584+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:764:in `build_app!'
2014-07-23T07:01:02.819589+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>'
2014-07-23T07:01:02.819612+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `<main>'
2014-07-23T07:01:02.819578+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn.rb:48:in `eval'
2014-07-23T07:01:02.819557+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
2014-07-23T07:01:02.819494+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
2014-07-23T07:01:02.819546+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `each'
2014-07-23T07:01:02.819587+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:137:in `start'
2014-07-23T07:01:02.819611+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `load'
2014-07-23T07:01:04.031160+00:00 heroku[web.1]: State changed from starting to crashed
2014-07-23T07:01:04.733648+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cfilink.herokuapp.com request_id=86caffee-16f4-4f06-a6d8-7930d96c7135 fwd="54.237.152.106" dyno= connect= service= status=503 bytes=
2014-07-23T07:01:04.020673+00:00 heroku[web.1]: Process exited with status 1
2014-07-23T07:01:00.263828+00:00 heroku[web.1]: Starting process with command `bundle exec unicorn -p 5019 -c ./config/unicorn.rb`
2014-07-23T07:01:17.938391+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cfilink.herokuapp.com request_id=96c1bf22-04ca-408b-b2c5-6a6282763eb2 fwd="99.169.168.250" dyno= connect= service= status=503 bytes=
2014-07-23T07:01:21.119579+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cfilink.herokuapp.com request_id=14e4d82e-c91f-49eb-bd81-d689e6f0f75a fwd="99.169.168.250" dyno= connect= service= status=503 bytes=
2014-07-23T07:01:22.528876+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cfilink.herokuapp.com request_id=343a0401-da9f-4ec6-99a1-70489632e40b fwd="99.169.168.250" dyno= connect= service= status=503 bytes=
2014-07-23T07:01:24.008236+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cfilink.herokuapp.com request_id=47981f94-e284-4b18-bec2-282f656e5289 fwd="99.169.168.250" dyno= connect= service= status=503 bytes=
2014-07-23T07:01:25.044701+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cfilink.herokuapp.co
m request_id=56593500-3931-4e5f-a44d-1b65879dff76 fwd="99.169.168.250" dyno= connect= service= status=503 bytes=
2014-07-23T07:01:27.515189+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cfilink.herokuapp.com request_id=d7b8d1b8-272a-4f05-b962-88e74fb27647 fwd="99.169.168.250" dyno= connect= service= status=503 bytes=
2014-07-23T07:01:29.495853+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cfilink.herokuapp.com request_id=15f0a28d-9d90-4114-bdc2-86ced1502757 fwd="99.169.168.250" dyno= connect= service= status=503 bytes=
2014-07-23T07:01:52.893456+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cfilink.herokuapp.com request_id=08f79ef3-8a34-4098-856e-6a841bbc9214 fwd="99.169.168.250" dyno= connect= service= status=503 bytes=
2014-07-23T07:08:27.346505+00:00 heroku[web.1]: State changed from crashed to starting
2014-07-23T07:08:32.470674+00:00 app[web.1]: I, [2014-07-23T07:08:32.470553 #2] INFO -- : Refreshing Gem list
2014-07-23T07:08:33.337873+00:00 app[web.1]: from /app/config/initializers/devise.rb:13:in `block in <top (required)>'
2014-07-23T07:08:33.337880+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:241:in `load'
2014-07-23T07:08:33.337886+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:241:in `load'
2014-07-23T07:08:33.337893+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:647:in `load_config_initializer'
2014-07-23T07:08:33.337883+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
2014-07-23T07:08:33.337888+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:648:in `block in load_config_initializer'
2014-07-23T07:08:33.337922+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
2014-07-23T07:08:33.337926+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:417:in `block in each_strongly_connected_component_from'
2014-07-23T07:08:33.337865+00:00 app[web.1]: /app/config/initializers/devise.rb:13:in `+': no implicit conversion of nil into String (TypeError)
2014-07-23T07:08:33.337889+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/notifications.rb:161:in `instrument'
2014-07-23T07:08:33.337894+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
2014-07-23T07:08:33.337918+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
2014-07-23T07:08:33.337876+00:00 app[web.1]: from /app/config/initializers/devise.rb:3:in `<top (required)>'
2014-07-23T07:08:33.337881+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:241:in `block in load'
2014-07-23T07:08:33.337940+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `call'
2014-07-23T07:08:33.337874+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/devise-3.2.4/lib/devise.rb:288:in `setup'
2014-07-23T07:08:33.337898+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:611:in `each'
2014-07-23T07:08:33.337929+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:44:in `tsort_each_child'
2014-07-23T07:08:33.337932+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:411:in `call'
2014-07-23T07:08:33.337900+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:611:in `block in <class:Engine>'
2014-07-23T07:08:33.337905+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/ra
ilties-4.1.4/lib/rails/initializable.rb:30:in `run'
2014-07-23T07:08:33.337908+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
2014-07-23T07:08:33.337923+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:418:in `block (2 levels) in each_strongly_connected_component_from'
2014-07-23T07:08:33.337935+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
2014-07-23T07:08:33.337936+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `each'
2014-07-23T07:08:33.337903+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
2014-07-23T07:08:33.337925+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
2014-07-23T07:08:33.337927+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:44:in `each'
2014-07-23T07:08:33.337953+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
2014-07-23T07:08:33.337934+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:411:in `each_strongly_connected_component_from'
2014-07-23T07:08:33.337946+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
2014-07-23T07:08:33.337943+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
2014-07-23T07:08:33.337979+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2014-07-23T07:08:33.337954+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
2014-07-23T07:08:33.337974+00:00 app[web.1]: from config.ru:4:in `require'
2014-07-23T07:08:33.337982+00:00 app[web.1]: from config.ru:1:in `new'
2014-07-23T07:08:33.337972+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-07-23T07:08:33.337950+00:00 app[web.1]: from /app/vendor/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
2014-07-23T07:08:33.337978+00:00 app[web.1]: from config.ru:4:in `block in <main>'
2014-07-23T07:08:33.337984+00:00 app[web.1]: from config.ru:1:in `<main>'
2014-07-23T07:08:33.337981+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2014-07-23T07:08:33.337986+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn.rb:48:in `block in builder'
2014-07-23T07:08:33.337985+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn.rb:48:in `eval'
2014-07-23T07:08:33.337988+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:764:in `call'
2014-07-23T07:08:33.337996+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `load'
2014-07-23T07:08:33.337991+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:764:in `build_app!'
2014-07-23T07:08:33.337993+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:137:in `start'
2014-07-23T07:08:33.337994+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>'
2014-07-23T07:08:33.337997+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `<main>'
2014-07-23T07:08:34.476119+00:00 heroku[web.1]: State changed from starting to crashed
2014-07-23T07:08:30.884736+00:00 heroku[web.1]: Starting process with command `bundle exec unicorn -p 40495 -c ./config/unicorn.rb`
2014-07-23T07:08:34.441069+00:00 heroku[web.1]: Process exited with status 1
2014-07-23T07:12:52.276241+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cfilink.herokuapp.com request_id=74ecf2fe-bcc2-4beb-9d0c-09be5181e4d8 fwd="99.169.168.250" dyno= connect= service= status=503 bytes=
And here is my Gem File
source 'https://rubygems.org'
ruby '2.1.2'
gem 'rails', '4.1.4'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'spring', group: :development
gem 'bootstrap-sass'
gem 'devise', '~> 3.2.4'
gem 'devise_invitable'
gem 'pg'
gem 'pundit'
gem 'unicorn'
gem 'unicorn-rails'
gem 'figaro'
gem 'rails_12factor', '~> 0.0.2'
group :development do
gem 'better_errors'
gem 'binding_of_caller', :platforms=>[:mri_21]
gem 'guard-bundler'
gem 'guard-rails'
gem 'guard-rspec'
gem 'hub', :require=>nil
gem 'quiet_assets'
gem 'rails_layout'
gem 'rb-fchange', :require=>false
gem 'rb-fsevent', :require=>false
gem 'rb-inotify', :require=>false
end
group :development, :test do
gem 'factory_girl_rails'
gem 'rspec-rails'
end
group :test do
gem 'capybara'
gem 'database_cleaner'
gem 'faker'
gem 'launchy'
gem 'selenium-webdriver'
end
My secrets.yml file
development:
admin_name: First User
admin_email: user#example.com
admin_password: changeme
email_provider_username: <%= ENV["GMAIL_USERNAME"] %>
email_provider_password: <%= ENV["GMAIL_PASSWORD"] %>
domain_name: example.com
secret_key_base: 7032833bb8e9bf8f3d46ad9b886aca9bb41a0d92adb3c1080570e24bdb31459d240f58721d7681b2486d5d9d352a608feb434be880c507155e719a9dfe678b19
test:
domain_name: example.com
secret_key_base: 0de0958bbdd2608a2e1a4378660d4ec4f50b2df23cd85f5508c5bb1c821cb129bc9f799421deb622950c0e3ba7e344d8ee3fe693b8b162aa4b685907ff8df13e
# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
admin_name: <%= ENV["ADMIN_NAME"] %>
admin_email: <%= ENV["ADMIN_EMAIL"] %>
admin_password: <%= ENV["ADMIN_PASSWORD"] %>
email_provider_username: <%= ENV["GMAIL_USERNAME"] %>
email_provider_password: <%= ENV["GMAIL_PASSWORD"] %>
domain_name: <%= ENV["DOMAIN_NAME"] %>
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
My application.yml file (figaro gem)
GMAIL_USERNAME: myusername#gmail.com
GMAIL_PASSWORD: mypassword
DOMAIN_NAME: studiorooster.com
This is what really caused the error
/app/config/initializers/devise.rb:13
If you still have this code in 13
config.mailer_sender = 'no-reply#' + Rails.application.secrets.domain_name
Then the reason is that Rails.application.secrets.domain_name is nil. On Heroku you have to set the secrets through einvironment variables und read them in the erb parsed secrets.yml in the production section
e.g
#secrets.yml
development:
domain_name: example.com
production:
domain_name: <%= ENV['DOMAIN_NAME'] %>

Error in Heroku while running Sinatra app

I have a Sinatra app using Webrick as its webserver(i know i should be using unicorn :)) , I am deploying it on Heroku and I am getting the following error on entering the url.
2013-10-26T01:28:04.463156+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=bbb-enroll.herokuapp.com fwd="67.188.115.197" dyno= connect= service= status=503 bytes=
2013-10-26T01:28:04.565142+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=bbb-enroll.herokuapp.comfwd="67.188.115.197" dyno= connect= service= status=503 bytes=
2013-10-26T01:28:10.665271+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=bbb-enroll.herokuapp.com fwd="67.188.115.197" dyno= connect= service= status=503 bytes=
The compile goes through fine, but the url does not open and the heroku logs command shows the errors.
This is my config.ru file
require './application'
run Sinatra::Application
and this is my application.rb file
... require code .....
webrick_options = {
:Port => 8443,
:Logger => WEBrick::Log::new($stderr, WEBrick::Log::DEBUG),
:DocumentRoot => "/ruby/htdocs",
#:DoNotReverseLookup => false,
:SSLEnable => true,
:SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE,
:SSLCertificate => IOSCertEnrollment::SSL.certificate,
:SSLPrivateKey => IOSCertEnrollment::SSL.key,
:SSLCertName => [ [ "CN",WEBrick::Utils::getservername ] ]
}
.//lots of code....
.....
class NBServer < Sinatra::Base
...//lots of code//...
..
Rack::Handler::WEBrick.run NBServer, webrick_options
What am I doing wrong! ?

Any idea how to configure log4php to integrate with heroku logging?

I'm trying to use log4php in my php application. Like log4j this can write logs to the console or a logfile. Bit confused as to how to interface this with the heroku logging. I would ideally like to be able to see the log statements by running heroku -logs from the toolbelt, but can't seem to figure out how to configure log4php to accomplish this.
Here is my log_config.xml that is setup to write to the console
<?xml version="1.0"?>
<log4php:configuration xmlns:log4php="http://logging.apache.org/log4php/">
<appender name="default" class="LoggerAppenderConsole">
<layout class="LoggerLayoutPattern">
<param name="ConversionPattern" value="%d{Y-m-d H:i:s} [%p] %c: %m (at %F line %L)%n" />
</layout>
</appender>
<appender name="fileLogger" class="LoggerAppenderFile">
<param name="file" value="c:/_logs/php_error.log" />
<layout class="LoggerLayoutPattern">
<param name="ConversionPattern" value="%d{Y-m-d H:i:s} [%p] %c: %m (at %F line %L)%n" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender_ref ref="default" />
</root>
<logger name="myLogger" additivity="true">
<level value="ALL" />
</logger>
</log4php:configuration>
But when I access the logs through the heroku toolbelt all I see is what looks like an apache access log with the following and none of the debug statements my app is generating
←[33m2012-12-30T13:45:57+00:00 heroku[router]:←[0m at=info method=GET path=/givefly/src/actions/get_thumbnails.php?searchTerm=fire&isUrl=false host=still-castle-2245.herokuapp.com fwd=121.7.1.191 dyno=web.1 queue=0 wait=0ms connect=2ms service=10117ms status=200 bytes=29
←[33m2012-12-30T13:46:25+00:00 heroku[router]:←[0m at=info method=GET path=/givefly/src/actions/get_page_title.php?url=www.pepsi.com host=still-castle-2245.herokuapp.com fwd=121.7.1.191 dyno=web.1 queue=0 wait=0ms connect=1ms service=401ms status=200 bytes=48
←[33m2012-12-30T13:46:25+00:00 heroku[router]:←[0m at=info method=GET path=/givefly/src/actions/get_thumbnails.php?searchTerm=www.pepsi.com&isUrl=true host=still-castle-2245.herokuapp.com fwd=121.7.1.191 dyno=web.1 queue=0 wait=0ms connect=1ms service=237ms status=500 bytes=0
←[33m2012-12-30T13:44:54+00:00 heroku[router]:←[0m at=info method=GET path=/givefly/src/static/homepage.css host=still-castle-2245.herokuapp.com fwd=121.7.1.191 dyno=web.1 queue=0 wait=0ms connect=1ms service=3ms status=200 bytes=2457
←[33m2012-12-30T13:44:58+00:00 heroku[router]:←[0m at=info method=GET path=/givefly/lib/jquery/noty/themes/default.js host=still-castle-2245.herokuapp.com fwd=121.7.1.191 dyno=web.1 queue=0 wait=0ms connect=1ms service=13ms status=200 bytes=9391
←[33m2012-12-30T13:44:58+00:00 heroku[router]:←[0m at=info method=GET path=/givefly/lib/jquery/jquery-impromptu.js host=still-castle-2245.herokuapp.com fwd=121.7.1.191 dyno=web.1 queue=0 wait=0ms connect=0ms service=3ms status=200 bytes=14772
←[35m2012-12-30T13:58:02+00:00 heroku[api]:←[0m Starting process with command `bash` by ashnil.dixit#gmail.com
←[31m2012-12-30T13:58:04+00:00 heroku[run.2213]:←[0m Starting process with command `bash`
←[31m2012-12-30T13:58:04+00:00 heroku[run.2213]:←[0m Awaiting client
←[31m2012-12-30T13:58:04+00:00 heroku[run.2213]:←[0m State changed from starting to up
←[31m2012-12-30T14:01:07+00:00 heroku[run.2213]:←[0m Client connection closed. Sending SIGHUP to all processes
←[31m2012-12-30T14:01:08+00:00 heroku[run.2213]:←[0m Process exited with status 129
←[31m2012-12-30T14:01:07+00:00 heroku[run.2213]:←[0m Client connection closed. Sending SIGHUP to all processes
←[31m2012-12-30T14:01:21+00:00 heroku[run.3834]:←[0m Awaiting client
←[31m2012-12-30T14:01:21+00:00 heroku[run.3834]:←[0m Starting process with command `bash`
←[31m2012-12-30T14:01:22+00:00 heroku[run.3834]:←[0m State changed from starting to up
←[35m2012-12-30T14:01:17+00:00 heroku[api]:←[0m Starting process with command `bash` by ashnil.dixit#gmail.com
←[31m2012-12-30T14:01:08+00:00 heroku[run.2213]:←[0m State changed from up to complete

Unable to successfully login using Spring OpenID

I have the following code in spring-security.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.1.xsd">
<security:http security="none" pattern="/openid.jsp" />
<security:http security="none" pattern="/logout.jsp" />
<security:http security="none" pattern="/success.jsp" />
<security:http auto-config="true"
authentication-manager-ref="authManager">
<security:intercept-url pattern="/**" access="ROLE_USER"/>
<security:openid-login login-page="/openid.jsp"
authentication-failure-url="/logout.jsp"
default-target-url="/success.jsp" >
</security:openid-login>
</security:http>
<security:authentication-manager id="authManager">
<security:authentication-provider>
<security:user-service>
<security:user name="spring" password="spring"
authorities="ROLE_USER" />
</security:user-service>
</security:authentication-provider>
</security:authentication-manager>
</beans>
Tomcat access logs do show that Google has authenticated the openid but still I hit the logout.jsp after allowing access from Google open id page.
127.0.0.1 - - [13/Dec/2012:22:55:44 +0530] "GET /SpringWebSecurityOpenID/getEmp.do/10 HTTP/1.1" 302 35
127.0.0.1 - - [13/Dec/2012:22:55:44 +0530] "GET /SpringWebSecurityOpenID/openid.jsp HTTP/1.1" 200 258
127.0.0.1 - - [13/Dec/2012:22:55:49 +0530] "POST /SpringWebSecurityOpenID/j_spring_openid_security_check HTTP/1.1" 302 35
127.0.0.1 - - [13/Dec/2012:22:55:50 +0530] "GET /SpringWebSecurityOpenID/j_spring_openid_security_check?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.op_endpoint=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fud&openid.response_nonce=2012-12-13T17cwcwc4rf32dwfdwGJ5oVQ_g&openid.return_to=http%3A%2F%2Flocalhost%3A8080%2FSpringWebSecurityOpenID%2Fj_spring_openid_security_check&openid.assoc_handle=AMlYA9UzE_QF5BKDYtD-k3_TbEdofnp7-43i9om-guRWh1TG5LhzEN7lzPyJ0IXzTjtNDbZz&openid.signed=op_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_nonce%2Cassoc_handle&openid.sig=4MN6wuiKCWkuNwfwfwfd32dddqwg%3D&openid.identity=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%cwcwc34r2dwefreWzH1fBOWj5v4U&openid.claimed_id=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid%3Fid432432EdewedrUfrp0nP3AWzH1fBOWj5v4U HTTP/1.1" 302 35
127.0.0.1 - - [13/Dec/2012:22:55:50 +0530] "GET /SpringWebSecurityOpenID/logout.jsp HTTP/1.1" 200 102
pls. help in troubleshooting this issue. If I remove openid login page attribute and use default open id form generated by Spring then I can easily get authenticated and hit the requested URL.
Have update spring-security.xml code above. The exception seen in the logs is:
2012-12-16 11:26:32,430{HH:mm:ss} DEBUG [http-bio-8080-exec-4] (ConsumerManager.java:1788)
- Local signature verification succeeded.
2012-12-16 11:26:32,430{HH:mm:ss} INFO [http-bio-8080-exec-4] (ConsumerManager.java:1848)
- Verification succeeded for: https://www.google.com/accounts/o8/id?id=AItOawl2FdNxxWJLrUfrp0nP3AWzH1fBOWj5v4U
2012-12-16 11:26:32,433{HH:mm:ss} DEBUG [http-bio-8080-exec-4] (ProviderManager.java:152) -
Authentication attempt using org.springframework.security.openid.OpenIDAuthenticationProvider
2012-12-16 11:26:32,434{HH:mm:ss} DEBUG [http-bio-8080-exec-4] (AbstractAuthenticationProcessingFil
ter.java:340) - Authentication request failed: org.springframework.security.core.userdetails.UsernameNotFoundException: h
ttps://www.google.com/accounts/o8/id?id=AItOawl2FdNxxWJLrUfrp0nP3AWzH1fBOWj5v4U
2012-12-16 11:26:32,434{HH:mm:ss} DEBUG [http-bio-8080-exec-4] (AbstractAuthenticationProcessingFil
ter.java:341) - Updated SecurityContextHolder to contain null Authentication
2012-12-16 11:26:32,435{HH:mm:ss} DEBUG [http-bio-8080-exec-4] (AbstractAuthenticationProcessingFil
ter.java:342) - Delegating to authentication failure handlerorg.springframework.security.web.authentication.SimpleUrlAuth
enticationFailureHandler#e9927a
Do I need to add the user I want to authenticate in spring-security.xml. I was trying to allow anybody with valid openid to login. I don't have any list of users to authenticate.
For your interceptor url try this instead of a role.
<security:intercept-url pattern="/**" access="isFullyAuthenticated()"/>

Assets precompile error on Heroku

I'm new to RoR and was trying to deploy to Heroku however its driving me crazy! this is my logs:
2012-04-21T19:32:27+00:00 app[web.1]:
2012-04-21T19:32:27+00:00 app[web.1]:
2012-04-21T19:32:27+00:00 app[web.1]: Started GET "/" for 89.240.212.20 at 2012-04-21 19:32:27 +0000
2012-04-21T19:32:27+00:00 app[web.1]: Processing by StoreController#index as HTML
2012-04-21T19:32:27+00:00 app[web.1]: Rendered store/index.html.erb within layouts/application (86.1ms)
2012-04-21T19:32:27+00:00 app[web.1]: Completed 500 Internal Server Error in 266ms
2012-04-21T19:32:27+00:00 app[web.1]:
2012-04-21T19:32:27+00:00 app[web.1]: ActionView::Template::Error (scaffold.css isn't precompiled):
2012-04-21T19:32:27+00:00 app[web.1]: 4: <head>
2012-04-21T19:32:27+00:00 app[web.1]: 5: <title>Pragprog Books Online Store</title>
2012-04-21T19:32:27+00:00 app[web.1]: 6: <!-- START:stylesheet -->
2012-04-21T19:32:27+00:00 app[web.1]: 7: <%= stylesheet_link_tag "scaffold" %>
2012-04-21T19:32:27+00:00 app[web.1]: 8: <%= stylesheet_link_tag "depot", :media => "all" %><!-- <label id="code.slt"/> -->
2012-04-21T19:32:27+00:00 app[web.1]: 9: <!-- END:stylesheet -->
2012-04-21T19:32:27+00:00 app[web.1]: app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3129246563521504454_25831520'
2012-04-21T19:32:27+00:00 app[web.1]: 10: <%= javascript_include_tag :defaults %>
2012-04-21T19:32:27+00:00 app[web.1]:
2012-04-21T19:32:27+00:00 app[web.1]:
2012-04-21T19:32:27+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=384ms status=500 bytes=643
2012-04-21T19:32:28+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=10ms status=200 bytes=0
2012-04-21T19:32:28+00:00 heroku[web.1]: Error R12 (Exit timeout) -> Process failed to exit within 10 seconds of SIGTERM
2012-04-21T19:32:28+00:00 heroku[web.1]: Stopping process with SIGKILL
2012-04-21T19:32:29+00:00 heroku[web.1]: Process exited with status 137
2012-04-21T19:33:09+00:00 app[web.1]:
2012-04-21T19:33:09+00:00 app[web.1]:
2012-04-21T19:33:09+00:00 app[web.1]: Processing by StoreController#index as HTML
2012-04-21T19:33:09+00:00 app[web.1]: Started GET "/" for 89.240.212.20 at 2012-04-21 19:33:09 +0000
2012-04-21T19:33:09+00:00 app[web.1]: Rendered store/index.html.erb within layouts/application (1.6ms)
2012-04-21T19:33:09+00:00 app[web.1]: Completed 500 Internal Server Error in 7ms
2012-04-21T19:33:09+00:00 app[web.1]:
2012-04-21T19:33:09+00:00 app[web.1]: ActionView::Template::Error (scaffold.css isn't precompiled):
2012-04-21T19:33:09+00:00 app[web.1]: 4: <head>
2012-04-21T19:33:09+00:00 app[web.1]: 5: <title>Pragprog Books Online Store</title>
2012-04-21T19:33:09+00:00 app[web.1]: 8: <%= stylesheet_link_tag "depot", :media => "all" %><!-- <label id="code.slt"/> -->
2012-04-21T19:33:09+00:00 app[web.1]: 6: <!-- START:stylesheet -->
2012-04-21T19:33:09+00:00 app[web.1]: 7: <%= stylesheet_link_tag "scaffold" %>
2012-04-21T19:33:09+00:00 app[web.1]: 9: <!-- END:stylesheet -->
2012-04-21T19:33:09+00:00 app[web.1]: 10: <%= javascript_include_tag :defaults %>
2012-04-21T19:33:09+00:00 app[web.1]: app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3129246563521504454_25831520'
2012-04-21T19:33:09+00:00 app[web.1]:
2012-04-21T19:33:09+00:00 app[web.1]:
2012-04-21T19:33:09+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=19ms status=500 bytes=643
2012-04-21T19:33:10+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=34ms status=304 bytes=0
2012-04-21T19:33:11+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=31ms status=500 bytes=643
2012-04-21T19:33:11+00:00 app[web.1]:
2012-04-21T19:33:11+00:00 app[web.1]:
2012-04-21T19:33:11+00:00 app[web.1]: Processing by StoreController#index as HTML
2012-04-21T19:33:11+00:00 app[web.1]: Started GET "/" for 89.240.212.20 at 2012-04-21 19:33:11 +0000
2012-04-21T19:33:11+00:00 app[web.1]: Completed 500 Internal Server Error in 12ms
2012-04-21T19:33:11+00:00 app[web.1]:
2012-04-21T19:33:11+00:00 app[web.1]: ActionView::Template::Error (scaffold.css isn't precompiled):
2012-04-21T19:33:11+00:00 app[web.1]: 5: <title>Pragprog Books Online Store</title>
2012-04-21T19:33:11+00:00 app[web.1]: 4: <head>
2012-04-21T19:33:11+00:00 app[web.1]: Rendered store/index.html.erb within layouts/application (1.4ms)
2012-04-21T19:33:11+00:00 app[web.1]: 7: <%= stylesheet_link_tag "scaffold" %>
2012-04-21T19:33:11+00:00 app[web.1]:
2012-04-21T19:33:11+00:00 app[web.1]: 8: <%= stylesheet_link_tag "depot", :media => "all" %><!-- <label id="code.slt"/> -->
2012-04-21T19:33:11+00:00 app[web.1]: 9: <!-- END:stylesheet -->
2012-04-21T19:33:11+00:00 app[web.1]: 10: <%= javascript_include_tag :defaults %>
2012-04-21T19:33:11+00:00 app[web.1]: app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3129246563521504454_25831520'
2012-04-21T19:33:11+00:00 app[web.1]:
2012-04-21T19:33:11+00:00 app[web.1]: 6: <!-- START:stylesheet -->
2012-04-21T19:33:13+00:00 app[web.1]:
2012-04-21T19:33:13+00:00 app[web.1]:
2012-04-21T19:33:13+00:00 app[web.1]: Processing by StoreController#index as HTML
2012-04-21T19:33:13+00:00 app[web.1]: Started GET "/" for 89.240.212.20 at 2012-04-21 19:33:13 +0000
2012-04-21T19:33:13+00:00 app[web.1]: Rendered store/index.html.erb within layouts/application (14.5ms)
2012-04-21T19:33:13+00:00 app[web.1]: Completed 500 Internal Server Error in 66ms
2012-04-21T19:33:13+00:00 app[web.1]: ActionView::Template::Error (scaffold.css isn't precompiled):
2012-04-21T19:33:13+00:00 app[web.1]: 4: <head>
2012-04-21T19:33:13+00:00 app[web.1]:
2012-04-21T19:33:13+00:00 app[web.1]: 5
: <title>Pragprog Books Online Store</title>
2012-04-21T19:33:13+00:00 app[web.1]: 6: <!-- START:stylesheet -->
2012-04-21T19:33:13+00:00 app[web.1]: 7: <%= stylesheet_link_tag "scaffold" %>
2012-04-21T19:33:13+00:00 app[web.1]: 8: <%= stylesheet_link_tag "depot", :media => "all" %><!-- <label id="code.slt"/> -->
2012-04-21T19:33:13+00:00 app[web.1]: 9: <!-- END:stylesheet -->
2012-04-21T19:33:13+00:00 app[web.1]: app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3129246563521504454_25831520'
2012-04-21T19:33:13+00:00 app[web.1]: 10: <%= javascript_include_tag :defaults %>
2012-04-21T19:33:13+00:00 app[web.1]:
2012-04-21T19:33:13+00:00 app[web.1]:
2012-04-21T19:33:13+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=89ms status=500 bytes=643
2012-04-21T19:33:15+00:00 app[web.1]:
2012-04-21T19:33:15+00:00 app[web.1]:
2012-04-21T19:33:15+00:00 app[web.1]: Started GET "/" for 89.240.212.20 at 2012-04-21 19:33:15 +0000
2012-04-21T19:33:15+00:00 app[web.1]: Processing by StoreController#index as HTML
2012-04-21T19:33:15+00:00 app[web.1]: Rendered store/index.html.erb within layouts/application (1.4ms)
2012-04-21T19:33:15+00:00 app[web.1]: Completed 500 Internal Server Error in 20ms
2012-04-21T19:33:15+00:00 app[web.1]:
2012-04-21T19:33:15+00:00 app[web.1]: 4: <head>
2012-04-21T19:33:15+00:00 app[web.1]: 6: <!-- START:stylesheet -->
2012-04-21T19:33:15+00:00 app[web.1]: ActionView::Template::Error (scaffold.css isn't precompiled):
2012-04-21T19:33:15+00:00 app[web.1]: 7: <%= stylesheet_link_tag "scaffold" %>
2012-04-21T19:33:15+00:00 app[web.1]: 5: <title>Pragprog Books Online Store</title>
2012-04-21T19:33:15+00:00 app[web.1]: 9: <!-- END:stylesheet -->
2012-04-21T19:33:15+00:00 app[web.1]: 10: <%= javascript_include_tag :defaults %>
2012-04-21T19:33:15+00:00 app[web.1]: 8: <%= stylesheet_link_tag "depot", :media => "all" %><!-- <label id="code.slt"/> -->
2012-04-21T19:33:15+00:00 app[web.1]: app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__3129246563521504454_25831520'
2012-04-21T19:33:15+00:00 app[web.1]:
2012-04-21T19:33:15+00:00 heroku[router]: GET depotalghamdi.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=65ms status=500 bytes=643
2012-04-21T19:33:15+00:00 app[web.1]:
I tried everything I know to precompile all css & js file but still getting this error I even set config.assets.precompile += ['*.js', '*.css'] but still not working.
When I turn config.serve_static_assets to true everything work but as you know it got some disadvantages!
Any clue guys?
It looks like you're trying to load your scaffold css file directly - line 7 of application.html.erb? I'm not familiar with the tutorial your basing off but typically your stylesheet_link_tag is to application which itself is a manifest file to let sprockets know what needs to be compliled.
Create an application.css file in your assets\stylesheets directory and it should look like;
/*
*= require_self
*= require_tree
*/
You can leave your existing scaffold.css file in place as the require_tree will have sprockets include the file in it's compilation task.

Resources