CSS Style problem in web deployment on heroku - html

Everything works fine, able to deploy the application on the server but the problem is on the website. It shows the content without CSS styles
Website link: https://riorana95.herokuapp.com/
On localhost it's working fine. It should look like this:
Here is my log from Heroku using the command heroku logs --tail.
2020-07-23T17:48:24.825819+00:00 app[web.1]: 10.143.53.219 - - [23/Jul/2020:17:48:24 +0000] "GET /about_Rio/ HTTP/1.1" 200 882 "http://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T17:48:24.827513+00:00 heroku[router]: at=info method=GET path="/about_Rio/" host=riorana95.herokuapp.com request_id=4896513b-fe03-43a6-a92e-b001947a1d71 fwd="150.107.10.58" dyno=web.1 connect=1ms service=3ms status=200 bytes=1043 protocol=http
2020-07-23T17:48:25.120451+00:00 app[web.1]: 10.143.53.219 - - [23/Jul/2020:17:48:25 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "http://riorana95.herokuapp.com/about_Rio/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T17:48:25.122106+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=f70e3d89-e0c6-4dd1-a3c6-e29830608b7d fwd="150.107.10.58" dyno=web.1 connect=4ms service=2ms status=404 bytes=400 protocol=http
2020-07-23T18:23:11.234512+00:00 heroku[web.1]: Idling
2020-07-23T18:23:11.236726+00:00 heroku[web.1]: State changed from up to down
2020-07-23T18:23:12.219251+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2020-07-23T18:23:12.253388+00:00 app[web.1]: [2020-07-23 18:23:12 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-07-23T18:23:12.253413+00:00 app[web.1]: [2020-07-23 18:23:12 +0000] [4] [INFO] Handling signal: term
2020-07-23T18:23:12.253414+00:00 app[web.1]: [2020-07-23 18:23:12 +0000] [9] [INFO] Worker exiting (pid: 9)
2020-07-23T18:23:12.351871+00:00 app[web.1]: [2020-07-23 18:23:12 +0000] [4] [INFO] Shutting down: Master
2020-07-23T18:23:12.438076+00:00 heroku[web.1]: Process exited with status 0
2020-07-23T18:23:26.376869+00:00 heroku[web.1]: Unidling
2020-07-23T18:23:26.378668+00:00 heroku[web.1]: State changed from down to starting
2020-07-23T18:23:30.025938+00:00 heroku[web.1]: Starting process with command `gunicorn Website_using_Flask:app`
2020-07-23T18:23:32.164756+00:00 app[web.1]: [2020-07-23 18:23:32 +0000] [4] [INFO] Starting gunicorn 20.0.4
2020-07-23T18:23:32.165285+00:00 app[web.1]: [2020-07-23 18:23:32 +0000] [4] [INFO] Listening at: http://0.0.0.0:50359 (4)
2020-07-23T18:23:32.165370+00:00 app[web.1]: [2020-07-23 18:23:32 +0000] [4] [INFO] Using worker: sync
2020-07-23T18:23:32.168764+00:00 app[web.1]: [2020-07-23 18:23:32 +0000] [9] [INFO] Booting worker with pid: 9
2020-07-23T18:23:32.266645+00:00 app[web.1]: [2020-07-23 18:23:32 +0000] [10] [INFO] Booting worker with pid: 10
2020-07-23T18:24:41.561982+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=riorana95.herokuapp.com request_id=4d6522a9-eb49-48de-838e-d51b04f5298a fwd="150.107.10.58" dyno= connect= service= status=503 bytes= protocol=http
2020-07-23T18:25:10.484012+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=riorana95.herokuapp.com request_id=84e5b587-3a19-42f7-a839-18c52fc8eb7c fwd="150.107.10.58" dyno= connect= service= status=503 bytes= protocol=http
2020-07-23T18:25:11.936294+00:00 heroku[web.1]: State changed from starting to up
2020-07-23T18:25:13.278599+00:00 app[web.1]: 10.63.41.14 - - [23/Jul/2020:18:25:13 +0000] "GET / HTTP/1.1" 200 707 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:13.285136+00:00 heroku[router]: at=info method=GET path="/" host=riorana95.herokuapp.com request_id=504ebb43-4e09-43f2-a3a1-86152c63649a fwd="150.107.10.58" dyno=web.1 connect=7ms service=20ms status=200 bytes=868 protocol=http
2020-07-23T18:25:13.345050+00:00 app[web.1]: 10.168.89.215 - - [23/Jul/2020:18:25:13 +0000] "GET / HTTP/1.1" 200 707 "https://dashboard.heroku.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:13.346251+00:00 heroku[router]: at=info method=GET path="/" host=riorana95.herokuapp.com request_id=a60d391a-6003-47b1-864e-6a4226bf6793 fwd="150.107.10.58" dyno=web.1 connect=2ms service=3ms status=200 bytes=868 protocol=https
2020-07-23T18:25:13.607685+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=14b84dab-ed49-4717-8bb8-13c0da850a7e fwd="150.107.10.58" dyno=web.1 connect=1ms service=3ms status=404 bytes=400 protocol=http
2020-07-23T18:25:13.608849+00:00 app[web.1]: 10.63.41.14 - - [23/Jul/2020:18:25:13 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "http://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:13.630266+00:00 app[web.1]: 10.168.89.215 - - [23/Jul/2020:18:25:13 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "https://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:13.631668+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=87cdf239-1ef3-4948-8251-ec40864570a1 fwd="150.107.10.58" dyno=web.1 connect=0ms service=3ms status=404 bytes=400 protocol=https
2020-07-23T18:25:13.962079+00:00 app[web.1]: 10.93.223.38 - - [23/Jul/2020:18:25:13 +0000] "GET / HTTP/1.1" 200 707 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:13.964554+00:00 heroku[router]: at=info method=GET path="/" host=riorana95.herokuapp.com request_id=a8ddf48a-1f8b-4f9e-8205-af48d1c5a990 fwd="150.107.10.58" dyno=web.1 connect=0ms service=2ms status=200 bytes=868 protocol=https
2020-07-23T18:25:18.042259+00:00 app[web.1]: 10.35.254.221 - - [23/Jul/2020:18:25:18 +0000] "GET /about_Rio/ HTTP/1.1" 200 882 "http://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:18.043411+00:00 heroku[router]: at=info method=GET path="/about_Rio/" host=riorana95.herokuapp.com request_id=cb0d2e0f-63d2-4f5f-b38f-66f1734cd98d fwd="150.107.10.58" dyno=web.1 connect=1ms service=5ms status=200 bytes=1043 protocol=http
2020-07-23T18:25:18.328184+00:00 app[web.1]: 10.35.254.221 - - [23/Jul/2020:18:25:18 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "http://riorana95.herokuapp.com/about_Rio/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:18.329422+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=1b0329e1-39ba-49e4-93a0-e91b555c876e fwd="150.107.10.58" dyno=web.1 connect=1ms service=2ms status=404 bytes=400 protocol=http
2020-07-23T18:25:20.699983+00:00 app[web.1]: 10.35.254.221 - - [23/Jul/2020:18:25:20 +0000] "GET / HTTP/1.1" 200 707 "http://riorana95.herokuapp.com/about_Rio/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:20.701477+00:00 heroku[router]: at=info method=GET path="/" host=riorana95.herokuapp.com request_id=1ec0a8a5-e2b3-4767-bb8b-24e92cdef2a7 fwd="150.107.10.58" dyno=web.1 connect=0ms service=21ms status=200 bytes=868 protocol=http
2020-07-23T18:25:20.984356+00:00 app[web.1]: 10.35.254.221 - - [23/Jul/2020:18:25:20 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "http://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:20.985628+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=6742ee51-f34b-47fd-9775-2e2215546249 fwd="150.107.10.58" dyno=web.1 connect=0ms service=2ms status=404 bytes=400 protocol=http
2020-07-23T18:25:22.816648+00:00 heroku[router]: at=info method=GET path="/about_Rio/" host=riorana95.herokuapp.com request_id=66e12c99-eb21-4ff4-9d6f-13ee9a7ed8b5 fwd="150.107.10.58" dyno=web.1 connect=0ms service=2ms status=200 bytes=1043 protocol=http
2020-07-23T18:25:22.817304+00:00 app[web.1]: 10.35.254.221 - - [23/Jul/2020:18:25:22 +0000] "GET /about_Rio/ HTTP/1.1" 200 882 "http://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:23.107992+00:00 app[web.1]: 10.35.254.221 - - [23/Jul/2020:18:25:23 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "http://riorana95.herokuapp.com/about_Rio/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:23.109072+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=5d0434fb-ea55-4c4b-9510-e8c0e77d152b fwd="150.107.10.58" dyno=web.1 connect=0ms service=2ms status=404 bytes=400 protocol=http
2020-07-23T18:25:25.583074+00:00 app[web.1]: 10.35.254.221 - - [23/Jul/2020:18:25:25 +0000] "GET / HTTP/1.1" 200 707 "http://riorana95.herokuapp.com/about_Rio/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:25.584169+00:00 heroku[router]: at=info method=GET path="/" host=riorana95.herokuapp.com request_id=25a5fe75-a45e-4ccf-843f-a07bebea1100 fwd="150.107.10.58" dyno=web.1 connect=1ms service=2ms status=200 bytes=868 protocol=http
2020-07-23T18:25:25.875038+00:00 app[web.1]: 10.35.254.221 - - [23/Jul/2020:18:25:25 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "http://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:25.876297+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=b06f982f-a952-4fd1-9edb-39ed437a0bf2 fwd="150.107.10.58" dyno=web.1 connect=0ms service=2ms status=404 bytes=400 protocol=http
2020-07-23T18:25:29.179954+00:00 app[web.1]: 10.168.89.215 - - [23/Jul/2020:18:25:29 +0000] "GET /about_Rio/ HTTP/1.1" 200 882 "https://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:29.181088+00:00 heroku[router]: at=info method=GET path="/about_Rio/" host=riorana95.herokuapp.com request_id=84d486d8-129f-4142-b654-683560c4e149 fwd="150.107.10.58" dyno=web.1 connect=1ms service=2ms status=200 bytes=1043 protocol=https
2020-07-23T18:25:29.461655+00:00 app[web.1]: 10.168.89.215 - - [23/Jul/2020:18:25:29 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "https://riorana95.herokuapp.com/about_Rio/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:29.462679+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=4019903e-d2ef-4daa-8538-09d0104684c4 fwd="150.107.10.58" dyno=web.1 connect=0ms service=2ms status=404 bytes=400 protocol=https
2020-07-23T18:25:30.253891+00:00 app[web.1]: 10.168.89.215 - - [23/Jul/2020:18:25:30 +0000] "GET / HTTP/1.1" 200 707 "https://riorana95.herokuapp.com/about_Rio/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:30.259322+00:00 heroku[router]: at=info method=GET path="/" host=riorana95.herokuapp.com request_id=353fc7a6-918e-432b-9057-8630a1a79940 fwd="150.107.10.58" dyno=web.1 connect=1ms service=6ms status=200 bytes=868 protocol=https
2020-07-23T18:25:30.539953+00:00 app[web.1]: 10.168.89.215 - - [23/Jul/2020:18:25:30 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "https://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:30.541893+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=fba748ae-7f7a-4086-9add-09dcfafadfea fwd="150.107.10.58" dyno=web.1 connect=0ms service=3ms status=404 bytes=400 protocol=https
2020-07-23T18:25:38.438155+00:00 app[web.1]: 10.47.238.174 - - [23/Jul/2020:18:25:38 +0000] "GET /about_Rio/ HTTP/1.1" 200 882 "http://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:38.440174+00:00 heroku[router]: at=info method=GET path="/about_Rio/" host=riorana95.herokuapp.com request_id=38208553-39dc-4f43-b633-2f88d185db06 fwd="150.107.10.58" dyno=web.1 connect=1ms service=4ms status=200 bytes=1043 protocol=http
2020-07-23T18:25:38.746501+00:00 app[web.1]: 10.47.238.174 - - [23/Jul/2020:18:25:38 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "http://riorana95.herokuapp.com/about_Rio/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:25:38.748666+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=9b0a751c-aa94-4acc-8a0c-291ca3bd76b2 fwd="150.107.10.58" dyno=web.1 connect=1ms service=3ms status=404 bytes=400 protocol=http
2020-07-23T18:59:49.123507+00:00 app[web.1]: 10.123.249.13 - - [23/Jul/2020:18:59:49 +0000] "GET / HTTP/1.1" 200 707 "https://dashboard.heroku.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:59:49.128334+00:00 heroku[router]: at=info method=GET path="/" host=riorana95.herokuapp.com request_id=b35d8ea9-67c2-4d20-9596-9ea7645006d2 fwd="150.107.10.58" dyno=web.1 connect=1ms service=7ms status=200 bytes=868 protocol=https
2020-07-23T18:59:49.413523+00:00 app[web.1]: 10.123.249.13 - - [23/Jul/2020:18:59:49 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "https://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-23T18:59:49.415132+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=e06e61a7-e902-4ef6-9b7e-a76c5ea10ec0 fwd="150.107.10.58" dyno=web.1 connect=1ms service=3ms status=404 bytes=400 protocol=https
2020-07-23T19:31:12.243100+00:00 heroku[web.1]: Idling
2020-07-23T19:31:12.246818+00:00 heroku[web.1]: State changed from up to down
2020-07-23T19:31:13.399725+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2020-07-23T19:31:13.439108+00:00 app[web.1]: [2020-07-23 19:31:13 +0000] [4] [INFO] Handling signal: term
2020-07-23T19:31:13.444182+00:00 app[web.1]: [2020-07-23 19:31:13 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-07-23T19:31:13.444188+00:00 app[web.1]: [2020-07-23 19:31:13 +0000] [9] [INFO] Worker exiting (pid: 9)
2020-07-23T19:31:13.540022+00:00 app[web.1]: [2020-07-23 19:31:13 +0000] [4] [INFO] Shutting down: Master
2020-07-23T19:31:13.776701+00:00 heroku[web.1]: Process exited with status 0
2020-07-24T02:46:49.242630+00:00 heroku[web.1]: Unidling
2020-07-24T02:46:49.269496+00:00 heroku[web.1]: State changed from down to starting
2020-07-24T02:46:52.708726+00:00 heroku[web.1]: Starting process with command `gunicorn Website_using_Flask:app`
2020-07-24T02:46:54.822177+00:00 app[web.1]: [2020-07-24 02:46:54 +0000] [4] [INFO] Starting gunicorn 20.0.4
2020-07-24T02:46:54.822799+00:00 app[web.1]: [2020-07-24 02:46:54 +0000] [4] [INFO] Listening at: http://0.0.0.0:19235 (4)
2020-07-24T02:46:54.822907+00:00 app[web.1]: [2020-07-24 02:46:54 +0000] [4] [INFO] Using worker: sync
2020-07-24T02:46:54.826995+00:00 app[web.1]: [2020-07-24 02:46:54 +0000] [9] [INFO] Booting worker with pid: 9
2020-07-24T02:46:54.876439+00:00 app[web.1]: [2020-07-24 02:46:54 +0000] [10] [INFO] Booting worker with pid: 10
2020-07-24T02:46:54.991972+00:00 heroku[web.1]: State changed from starting to up
2020-07-24T02:46:56.326724+00:00 app[web.1]: 10.35.221.122 - - [24/Jul/2020:02:46:56 +0000] "GET / HTTP/1.1" 200 707 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-24T02:46:56.328923+00:00 heroku[router]: at=info method=GET path="/" host=riorana95.herokuapp.com request_id=a93dff84-09a9-4458-90ab-4ef075892499 fwd="150.107.10.58" dyno=web.1 connect=0ms service=12ms status=200 bytes=868 protocol=https
2020-07-24T02:46:56.614391+00:00 app[web.1]: 10.35.221.122 - - [24/Jul/2020:02:46:56 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "https://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-24T02:46:56.616186+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=e8f43237-627f-4bc0-a973-8183fc564264 fwd="150.107.10.58" dyno=web.1 connect=0ms service=2ms status=404 bytes=400 protocol=https
2020-07-24T02:46:56.906159+00:00 app[web.1]: 10.35.221.122 - - [24/Jul/2020:02:46:56 +0000] "GET /favicon.ico HTTP/1.1" 404 232 "https://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-24T02:46:56.908001+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=riorana95.herokuapp.com request_id=808494d1-8691-43c9-ad3a-a811c4aaafe1 fwd="150.107.10.58" dyno=web.1 connect=0ms service=1ms status=404 bytes=400 protocol=https
2020-07-24T02:49:29.435757+00:00 app[web.1]: 10.41.192.172 - - [24/Jul/2020:02:49:29 +0000] "GET / HTTP/1.1" 200 707 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-24T02:49:29.438155+00:00 heroku[router]: at=info method=GET path="/" host=riorana95.herokuapp.com request_id=0eeeb9b7-6ffb-4ec0-854e-66d988823b12 fwd="150.107.10.58" dyno=web.1 connect=0ms service=2ms status=200 bytes=868 protocol=https
2020-07-24T02:49:29.771077+00:00 app[web.1]: 10.41.192.172 - - [24/Jul/2020:02:49:29 +0000] "GET /static/css/main.css HTTP/1.1" 404 232 "https://riorana95.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
2020-07-24T02:49:29.773535+00:00 heroku[router]: at=info method=GET path="/static/css/main.css" host=riorana95.herokuapp.com request_id=aeaf3464-386b-4375-b17e-7e75a6416c43 fwd="150.107.10.58" dyno=web.1 connect=0ms service=2ms status=404 bytes=400 protocol=https
2020-07-24T03:24:25.677289+00:00 heroku[web.1]: Idling
2020-07-24T03:24:25.679382+00:00 heroku[web.1]: State changed from up to down
2020-07-24T03:24:28.348363+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2020-07-24T03:24:28.397955+00:00 app[web.1]: [2020-07-24 03:24:28 +0000] [9] [INFO] Worker exiting (pid: 9)
2020-07-24T03:24:28.402535+00:00 app[web.1]: [2020-07-24 03:24:28 +0000] [10] [INFO] Worker exiting (pid: 10)
2020-07-24T03:24:28.419073+00:00 app[web.1]: [2020-07-24 03:24:28 +0000] [4] [INFO] Handling signal: term
2020-07-24T03:24:28.520067+00:00 app[web.1]: [2020-07-24 03:24:28 +0000] [4] [INFO] Shutting down: Master
2020-07-24T03:24:28.609430+00:00 heroku[web.1]: Process exited with status 0
My Python code:
from flask import Flask, render_template
app = Flask(__name__)
#app.route('/')
def home():
return render_template("Journey.html")
#app.route('/about_Rio/')
def about():
return render_template("About Rio.html")
if __name__ == "__main__":
app.run(debug=True)
HTML file layout_2 code:
<!DOCTYPE html>
<html>
<head>
<title>Flask App</title>
<link rel="stylesheet" href="{{url_for('static',filename='css/main.css')}}">
</head>
<body>
<header>
<div class="container">
<h1 class="logo">Web App</h1>
<strong><nav>
<ul class="menu">
<li>Home</li>
<li>About</li>
</ul>
</nav></strong>
</header><div class="container">
{%block content%}
{%endblock%}
</div>
</body>
</html>
HTML file Journey code:
{%extends "layout_2.html"%}
{%block content%}
<div class="home">
<h1>Journey</h1>
<p>About people</p>
</div>
{%endblock%}
HTML file About Rio code:
{%extends "layout_2.html"%}
{%block content%}
<div class="about">
<h1>
<center>About Rio</center>
</h1>
<ul>
<li>22-07-2020 :- The longer you live… The more you realize that reality is just made of pain, suffering and
emptiness</li>
</ul>
</div>
{%endblock%}
CSS file code:
body {
margin: 0;
padding: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #060;
}
/*
* Formatting the header area
*/
header {
background-color: #DFB887;
height: 35px;
width: 100%;
opacity: .9;
margin-bottom: 10px;
}
header h1.logo {
margin: 0;
font-size: 1.7em;
color: #fff;
text-transform: uppercase;
float: left;
}
header h1.logo:hover {
color: #fff;
text-decoration: none;
}
/*
* Center the body content
*/
.container {
width: 1200px;
margin: 0 auto;
}
div.home {
padding: 10px 0 30px 0;
background-color: #E6E6FA;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
div.about {
padding: 10px 0 30px 0;
background-color: #E6E6FA;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
h2 {
font-size: 3em;
margin-top: 40px;
text-align: center;
letter-spacing: -2px;
}
h3 {
font-size: 1.7em;
font-weight: 100;
margin-top: 30px;
text-align: center;
letter-spacing: -1px;
color: #999;
}
.menu {
float: right;
margin-top: 8px;
}
.menu li {
display: inline;
}
.menu li + li {
margin-left: 35px;
}
.menu li a {
color: #444;
text-decoration: none;
}

I don't know exactly where was the problem but it working now.
I deleted the app from heroku and .git folder from my "website" folder and change folder name from CSS to css (inside static folder).
then i retry all the process and now it's working fine

Related

H14 in heroku "no web process running"

2023-01-27T20:52:07.617166+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=protected-hamlet-02351.herokuapp.com request_id=14e2b1ae-7a5b-43aa-8944-a5d406fb5727 fwd="42.105.234.220"
dyno= connect= service= status=503 bytes= protocol=https
can you guys please resolve this issue

Heroku application App crashed can't get path

I am trying for the first time to use Heroku, my app works fine on the local machine, and it builds successfully on Heroku but when I try to open it I get the following errors, full logs at the end
2020-05-02T16:35:34.660563+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-02T16:35:42.610766+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-tundra-79939.herokuapp.com request_id=d3ccbec7-c4a3-4805-8df5-ea8f39b82001 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-02T16:35:43.084078+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-tundra-79939.herokuapp.com request_id=09e01082-777c-4b95-a556-c2b85d9fe192 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
here is the index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:image" content="http://euro-travel-example.com/thumbnail.jpg">
<meta property="og:url" content="http://euro-travel-example.com/index.htm">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<title>testapp</title>
</head>
<body>
<div id="root"></div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"
integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"
integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm"
crossorigin="anonymous"></script>
</body>
</html>
2020-05-05T18:49:55.957210+00:00 app[web.1]:
2020-05-05T18:49:57.832175+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Project is running at http://172.16.247.6/
2020-05-05T18:49:57.832502+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: webpack output is served from
2020-05-05T18:49:57.832579+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Content not from webpack is served from /app/public
2020-05-05T18:49:57.832647+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: 404s will fallback to /
2020-05-05T18:49:57.832827+00:00 app[web.1]: Starting the development server...
2020-05-05T18:49:57.832827+00:00 app[web.1]:
2020-05-05T18:49:57.930367+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-06T00:26:51.023260+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-tundra-79939.herokuapp.com request_id=cc1a766f-6f8e-4c9d-a905-4db2c5a35123 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:26:51.707295+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-tundra-79939.herokuapp.com request_id=71e0907a-cab5-460a-baae-a8f18a4c6e3c fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:27:53.993935+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-tundra-79939.herokuapp.com request_id=3f8f5a51-3f4c-4772-bfd2-def72ff6ba3d fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:27:54.533509+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-tundra-79939.herokuapp.com request_id=17c0e361-a681-4a1b-8b91-2b11d27b0889 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:28:40.343274+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-tundra-79939.herokuapp.com request_id=67c5ba4b-cc2a-4bf7-a541-bc85fb5368a7 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:28:40.883375+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-tundra-79939.herokuapp.com request_id=e571e97a-b05a-431c-8977-515877b46794 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:29:25.465162+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-tundra-79939.herokuapp.com request_id=76f11081-66aa-497b-8e36-edf91db8e5af fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:29:26.011122+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-tundra-79939.herokuapp.com request_id=8c0ae3f4-bd5a-4b4b-b35c-0d23a62eb904 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:29:29.518382+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-tundra-79939.herokuapp.com request_id=bd11cc44-8174-4668-8a39-e9ad79bd13ed fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:29:29.978317+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-tundra-79939.herokuapp.com request_id=317f7164-c003-4ea8-bd6d-bda85b7379d3 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:29:54.655340+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-tundra-79939.herokuapp.com request_id=57bd99b4-b000-4553-acaf-8d73266b3cc9 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:29:55.215061+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-tundra-79939.herokuapp.com request_id=a2d42c76-35b8-42fa-885f-de122556b825 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:30:17.301612+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-tundra-79939.herokuapp.com request_id=59438701-a1a8-4ce9-901a-ad7026be07a4 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:30:17.853183+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-tundra-79939.herokuapp.com request_id=712a931c-60ec-41c0-a1f6-02885e046ec1 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:30:53.000000+00:00 app[api]: Build started by user
2020-05-06T00:32:07.210573+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-06T00:32:06.828499+00:00 app[api]: Deploy 4df36638 by user
2020-05-06T00:32:06.828499+00:00 app[api]: Release v12 created by user
2020-05-06T00:32:14.000000+00:00 app[api]: Build succeeded
2020-05-06T00:32:21.473845+00:00 app[web.1]:
2020-05-06T00:32:21.473861+00:00 app[web.1]: > opentable#0.1.0 start /app
2020-05-06T00:32:21.473861+00:00 app[web.1]: > react-scripts start
2020-05-06T00:32:21.473862+00:00 app[web.1]:
2020-05-06T00:32:25.753013+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Project is running at http://172.18.92.170/
2020-05-06T00:32:25.753629+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: webpack output is served from
2020-05-06T00:32:25.753777+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Content not from webpack is served from /app/public
2020-05-06T00:32:25.753895+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: 404s will fallback to /
2020-05-06T00:32:25.754229+00:00 app[web.1]: Starting the development server...
2020-05-06T00:32:25.754230+00:00 app[web.1]:
2020-05-06T00:32:25.881428+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-06T00:32:25.884338+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-06T00:32:37.154954+00:00 app[web.1]:
2020-05-06T00:32:37.154971+00:00 app[web.1]: > opentable#0.1.0 start /app
2020-05-06T00:32:37.154971+00:00 app[web.1]: > react-scripts start
2020-05-06T00:32:37.154972+00:00 app[web.1]:
2020-05-06T00:32:39.227810+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Project is running at http://172.18.49.162/
2020-05-06T00:32:39.228215+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: webpack output is served from
2020-05-06T00:32:39.228315+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Content not from webpack is served from /app/public
2020-05-06T00:32:39.228403+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: 404s will fallback to /
2020-05-06T00:32:39.228613+00:00 app[web.1]: Starting the development server...
2020-05-06T00:32:39.228615+00:00 app[web.1]:
2020-05-06T00:32:39.350859+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-06T00:32:40.270514+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-tundra-79939.herokuapp.com request_id=9eb7556b-8477-448a-b054-f21bbcd43734 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:32:41.800494+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-tundra-79939.herokuapp.com request_id=1f677ae6-ba9b-4141-9077-cca446acb53b fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:36:38.633976+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-tundra-79939.herokuapp.com request_id=c8267a8d-40a4-4e85-8917-fd2cbcdb5e26 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:36:39.245883+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-tundra-79939.herokuapp.com request_id=f3d5af60-fcf2-4ffa-935e-731525f167a0 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:45:33.000000+00:00 app[api]: Build started by user
2020-05-06T00:46:05.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/333fe337-28b4-4897-aea2-b6e00e21658c/activity/builds/353cebff-768b-4690-b319-cfd691354e65
2020-05-06T00:49:46.000000+00:00 app[api]: Build started by user
2020-05-06T00:51:00.406504+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-06T00:51:00.150835+00:00 app[api]: Deploy e761a226 by user
2020-05-06T00:51:00.150835+00:00 app[api]: Release v13 created by user
2020-05-06T00:51:07.000000+00:00 app[api]: Build succeeded
2020-05-06T00:51:10.690011+00:00 app[web.1]:
2020-05-06T00:51:10.690025+00:00 app[web.1]: > opentable#0.1.0 start /app
2020-05-06T00:51:10.690026+00:00 app[web.1]: > react-scripts start
2020-05-06T00:51:10.690026+00:00 app[web.1]:
2020-05-06T00:51:12.685464+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Project is running at http://172.16.128.62/
2020-05-06T00:51:12.685820+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: webpack output is served from
2020-05-06T00:51:12.685898+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Content not from webpack is served from /app/public
2020-05-06T00:51:12.685967+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: 404s will fallback to /
2020-05-06T00:51:12.686185+00:00 app[web.1]: Starting the development server...
2020-05-06T00:51:12.686188+00:00 app[web.1]:
2020-05-06T00:51:12.787345+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-06T00:51:12.790433+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-06T00:51:29.195595+00:00 app[web.1]:
2020-05-06T00:51:29.195636+00:00 app[web.1]: > opentable#0.1.0 start /app
2020-05-06T00:51:29.195636+00:00 app[web.1]: > react-scripts start
2020-05-06T00:51:29.195637+00:00 app[web.1]:
2020-05-06T00:51:34.480135+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Project is running at http://172.19.76.182/
2020-05-06T00:51:34.480852+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: webpack output is served from
2020-05-06T00:51:34.481791+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Content not from webpack is served from /app/public
2020-05-06T00:51:34.481944+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: 404s will fallback to /
2020-05-06T00:51:34.482310+00:00 app[web.1]: Starting the development server...
2020-05-06T00:51:34.482311+00:00 app[web.1]:
2020-05-06T00:51:34.653916+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-06T00:51:49.687511+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-tundra-79939.herokuapp.com request_id=644090fa-2282-43eb-b6a0-3f586a877b2b fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:51:50.279212+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-tundra-79939.herokuapp.com request_id=41875779-e718-4c21-9cd0-a27b994ce5ff fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:52:45.417633+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-06T00:52:57.867537+00:00 app[web.1]:
2020-05-06T00:52:57.867556+00:00 app[web.1]: > opentable#0.1.0 start /app
2020-05-06T00:52:57.867556+00:00 app[web.1]: > react-scripts start
2020-05-06T00:52:57.867556+00:00 app[web.1]:
2020-05-06T00:52:59.557333+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Project is running at http://172.17.90.18/
2020-05-06T00:52:59.557673+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: webpack output is served from
2020-05-06T00:52:59.557747+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Content not from webpack is served from /app/public
2020-05-06T00:52:59.557810+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: 404s will fallback to /
2020-05-06T00:52:59.557987+00:00 app[web.1]: Starting the development server...
2020-05-06T00:52:59.557987+00:00 app[web.1]:
2020-05-06T00:52:59.658416+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-06T00:53:42.008093+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-tundra-79939.herokuapp.com request_id=92745996-d95d-4da8-a4f1-686fcb5c63be fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T00:53:42.611511+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-tundra-79939.herokuapp.com request_id=bf1eafd8-3211-4027-91a6-85bb996b9038 fwd="72.137.75.96" dyno= connect= service= status=503 bytes= protocol=https
I used to have favicon but it has been removed and new git has been pushed, but still getting the error
I fixed the issue as this was my very first ever app to in nodejs i did not know i need the server.
const express = require('express');
const favicon = require('express-favicon');
const path = require('path');
const port = process.env.PORT || 9999;
const app = express();
app.use(favicon(__dirname + '/build/favicon.ico'));
app.use(express.static(__dirname));
app.use(express.static(path.join(__dirname, 'build')));
app.get('/ping', function (req, res) {
return res.send('pong');
});
app.get('/*', function (req, res) {
res.sendFile(path.join(__dirname, 'build', 'index.html'));
});
app.listen(port);
Create the Procfile file at the root of your project and add this content (web: npm run start:prod) then redeploy your app on heroku
This work only for NodeJS application

Logback not accepting Html tags

I am using Logback for logging in my application. I am using HTMLLayout and my msg is formatted already but when logbak print that msg its not showing formatted msg.
My code in logback is :
<appender name="INFO-HTML"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>INFO</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="ch.qos.logback.classic.html.HTMLLayout">
<pattern>%d{yyyy-MM-dd HH:mm:ss}%level%msg</pattern>
</layout>
</encoder>
<file>${TOMCAT_ROOT}/infolog.html</file>
<append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- rollover daily -->
<fileNamePattern>${LOG_FOLDER}/archived/infolog.%d{yyyy-MM-dd}.%i.html</fileNamePattern>
<maxHistory>1</maxHistory>
<totalSizeCap>1MB</totalSizeCap>
<timeBasedFileNamingAndTriggeringPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>1MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
</appender>
message example:
HTTP REQUEST : User: unknown - Path: resorts - Header: {host=[localhost:8022], connection=[keep-alive], content-length=[795], user-agent=[Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36], cache-control=[no-cache], origin=[chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop], content-type=[application/json], authorization=[g8mm505be952dc27b7hofgaa0la1], postman-token=[21c3aba1-9629-9352-7d6b-25c2dcbc3eaf], accept=[/], accept-encoding=[gzip, deflate, br], accept-language=[pt], authToken=[g8mm505be952dc27b7hofgaa0la1]} - Entity: { "url": "sdfbgs",
"videos": null,
"serviceIds": null,
"latitude": "",
"longitude": "",
"isPublished": false }
I have removed few key-value pairs from json which may create confusion to understand. And I have added start of html tag after 'HTTP REQUEST :' and end of that tag is placed at end of message.
Answering to my Own question.
I completed it using Java class HTMLLayout which extends HTMLLayout class in logback library.
Then given that class path in logback.xml file.
I followed this to create HTMLLayout class. More precisely, At line 61, in provided link, that pre tag is used solved my issue.

Spring JSON request: HTTP Status 406

I know, this popped up repeatedly on stackoverflow. Unfortunately none of the solutions provided solved my problem.
I am trying to have my server respond with with Data in JSON format in the simplest possible way, using Jackson message converter.
My configuration:
My pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>whatever</artifactId>
<name>whatever</name>
<packaging>war</packaging>
<version>1.0.0-BUILD-SNAPSHOT</version>
<properties>
<java-version>1.7</java-version>
<org.springframework-version>3.1.1.RELEASE</org.springframework-version>
<org.aspectj-version>1.6.10</org.aspectj-version>
<org.slf4j-version>1.6.6</org.slf4j-version>
</properties>
<dependencies>
<!-- Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${org.springframework-version}</version>
<exclusions>
<!-- Exclude Commons Logging in favor of SLF4j -->
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${org.springframework-version}</version>
</dependency>
...
<!-- Jackson Mapper for JSON response -->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.5</version>
</dependency>
...
</dependencies>
<build>
...
</build>
</project>
jackson-mapper-asl-1.9.5.jar and jackson-core-asl-1.9.5.jar are on the build path.
My /whatever/src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure -->
<context:component-scan base-package="com.mycompany.whatever" />
<annotation-driven />
...
</beans:beans>
My controller:
package com.mycompany.whatever;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
#Controller
public class AParticularUserController implements UserController {
#RequestMapping(value = "/demo/sayhello/{name}", method = RequestMethod.GET)
public #ResponseBody GreeterDemo sayHello(#PathVariable String name) {
return new GreeterDemo(name);
}
}
GreeterDemo is a very simple Demo class:
package com.mycompany.whatever;
public class GreeterDemo {
private String name;
public GreeterDemo(String name) {
this.name = name;
}
}
When I make a GET request against my development Server (Tomcat v7.0) http://localhost:8080/whatever/demo/sayhello/SomeName I always receive the error message:
HTTP Status 406 -
type Status report
message
description The resource identified by this request is only capable of
generating responses with characteristics not acceptable according to
the request "accept" headers.
Apache Tomcat/7.0.37
The request parameters seem to be correct though:
Accept:application/json
Accept-Charset:UTF-8,*;q=0.5
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-GB,en;q=0.8,de-DE;q=0.6,de;q=0.4,fr-FR;q=0.2,fr;q=0.2
Connection:keep-alive
Host:localhost:8080
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.70 Safari/537.17
respectively
Accept:*/*
Accept-Charset:UTF-8,*;q=0.5
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-GB,en;q=0.8,de-DE;q=0.6,de;q=0.4,fr-FR;q=0.2,fr;q=0.2
Connection:keep-alive
Host:localhost:8080
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.70 Safari/537.17
Any ideas...?
The issue is that the GreeterDemo type is missing getters(based on discussions in the comments to the question) and Jackson refuses to accept it as a valid type that it can convert into json, once the getter is added the conversion to json proceeds as expected.

Mysql to PostgreSql Rails 3 heroku app true/false

Everything works fine until I push to heroku, I gathered that it has to do with diffirent ways mysql and postgres display the boolean values?
I am using Ruby 1.9.2p318 and Rails 3.2.2 with Mysql 5.2.35 on Max OSX
Here is the query I am trying to run
#special_offers = Wine.find(:all, :include => [:inventories], :conditions => ["inventories.special = ? AND inventories.warehouse_id IN (?)", "true", #wharehouses_array], :order => "inventories.updated_at DESC", :limit => 3)
It seems the problem lies with the inventories.special = ?, "true"
This works fine on mysql but not when I push to heroku, wich is using postgres
I have tried replacing the "true" with 1 and "1" and "t" and t and true but nothing seems to work?
UPDATE:
Heroku log file
2012-04-04T14:06:58+00:00 app[web.1]: [2012-04-04 14:06:58] INFO WEBrick 1.3.1
2012-04-04T14:06:58+00:00 app[web.1]: [2012-04-04 14:06:58] INFO WEBrick::HTTPServer#start: pid=1 port=54181
2012-04-04T14:06:58+00:00 app[web.1]: [2012-04-04 14:06:58] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2012-04-04T14:06:59+00:00 heroku[web.1]: State changed from starting to up
2012-04-04T14:07:01+00:00 app[web.1]: => Booting WEBrick
2012-04-04T14:07:01+00:00 app[web.1]: => Call with -d to detach
2012-04-04T14:07:01+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-04-04T14:07:01+00:00 app[web.1]:
2012-04-04T14:07:01+00:00 app[web.1]: => Rails 3.2.2 application starting in production on http://0.0.0.0:54181
2012-04-04T14:07:01+00:00 app[web.1]:
2012-04-04T14:07:01+00:00 app[web.1]: Started GET "/" for 41.119.121.138 at 2012-04-04 14:07:01 +0000
2012-04-04T14:07:02+00:00 app[web.1]: Processing by HomeController#index as HTML
2012-04-04T14:07:03+00:00 app[web.1]: Rendered partials/_display_wines.html.erb (169.1ms)
2012-04-04T14:07:03+00:00 app[web.1]: Rendered partials/_display_wines.html.erb (0.0ms)
2012-04-04T14:07:03+00:00 app[web.1]: Rendered partials/_display_wines.html.erb (8.1ms)
2012-04-04T14:07:03+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (259.9ms)
2012-04-04T14:07:03+00:00 app[web.1]: Rendered partials/_header_bar.html.erb (6.5ms)
2012-04-04T14:07:03+00:00 app[web.1]: Rendered partials/_main_links.html.erb (0.3ms)
2012-04-04T14:07:03+00:00 app[web.1]: Rendered partials/_footer.html.erb (4.9ms)
2012-04-04T14:07:03+00:00 app[web.1]: Completed 200 OK in 1081ms (Views: 345.8ms | ActiveRecord: 175.7ms | Solr: 0.0ms)
2012-04-04T14:07:03+00:00 app[web.1]: cache: [GET /] miss
2012-04-04T14:07:03+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=1350ms status=200 bytes=36808
2012-04-04T14:07:04+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/javascripts/jquery.js dyno=web.1 queue=0 wait=0ms service=137ms status=304 bytes=0
2012-04-04T14:07:04+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/stylesheets/style1.css dyno=web.1 queue=0 wait=0ms service=179ms status=304 bytes=0
2012-04-04T14:07:04+00:00 app[web.1]: cache: [GET /stylesheets/style1.css] miss
2012-04-04T14:07:04+00:00 app[web.1]: cache: [GET /javascripts/jquery.js] miss
+00:00 app[web.1]: cache: [GET /javascripts/script1.js] miss
2012-04-04T14:07:04+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/javascripts/script1.js dyno=web.1 queue=0 wait=0ms service=187ms status=304 bytes=0
2012-04-04T14:07:04+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/javascripts/PIE.js dyno=web.1 queue=0 wait=0ms service=185ms status=304 bytes=0
2012-04-04T14:07:04+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/javascripts/rails.js dyno=web.1 queue=0 wait=0ms service=189ms status=304 bytes=0
2012-04-04T14:07:04+00:00 app[web.1]: cache: [GET /javascripts/PIE.js] miss
2012-04-04T14:07:04+00:00 app[web.1]: cache: [GET /javascripts/rails.js] miss
2012-04-04T14:07:04+00:00 app[web.1]: cache: [GET /images/header_tile.png] miss
2012-04-04T14:07:04+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/header_tile.png dyno=web.1 queue=0 wait=0ms service=16ms status=304 bytes=0
2012-04-04T14:07:04+00:00 app[web.1]: cache: [GET /images/none.png] miss
2012-04-04T14:07:04+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/none.png dyno=web.1 queue=0 wait=0ms service=35ms status=304 bytes=0
2012-04-04T14:07:04+00:00 app[web.1]: cache: [GET /images/cybercellar_logo.jpg] miss
2012-04-04T14:07:04+00:00 app[web.1]: cache: [GET /images/flags.png] miss
2012-04-04T14:07:04+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/flags.png dyno=web.1 queue=0 wait=0ms service=96ms status=304 bytes=0
2012-04-04T14:07:04+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/cybercellar_logo.jpg dyno=web.1 queue=0 wait=0ms service=84ms status=304 bytes=0
2012-04-04T14:07:04+00:00 app[web.1]: cache: [GET /images/header_login.png] miss
2012-04-04T14:07:04+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/header_login.png dyno=web.1 queue=0 wait=0ms service=44ms status=304 bytes=0
2012-04-04T14:07:05+00:00 app[web.1]: cache: [GET /images/no_wine.png] miss
2012-04-04T14:07:05+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/no_wine.png dyno=web.1 queue=0 wait=0ms service=22ms status=304 bytes=0
2012-04-04T14:07:05+00:00 app[web.1]: cache: [GET /images/buttons2.png] miss
2012-04-04T14:07:05+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/buttons2.png dyno=web.1 queue=0 wait=0ms service=19ms status=304 bytes=0
2012-04-04T14:07:05+00:00 app[web.1]: cache: [GET /images/find_wine_wrap.png] miss
2012-04-04T14:07:05+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/find_wine_wrap.png dyno=web.1 queue=0 wait=0ms service=22ms status=304 bytes=0
2012-04-04T14:07:05+00:00 app[web.1]: cache: [GET /images/comment.png] miss
2012-04-04T14:07:05+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/comment.png dyno=web.1 queue=0 wait=0ms service=5ms status=304 bytes=0
2012-04-04T14:07:05+00:00 app[web.1]: cache: [GET /images/bullet.png] miss
4:07:05+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/bullet.png dyno=web.1 queue=0 wait=0ms service=13ms status=304 bytes=0
2012-04-04T14:07:05+00:00 app[web.1]: cache: [GET /images/buttons.png] miss
2012-04-04T14:07:05+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/buttons.png dyno=web.1 queue=0 wait=0ms service=12ms status=304 bytes=0
2012-04-04T14:07:05+00:00 app[web.1]: cache: [GET /images/links_bar.png] miss
2012-04-04T14:07:05+00:00 app[web.1]: cache: [GET /images/hr_light.png] miss
2012-04-04T14:07:05+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/hr_light.png dyno=web.1 queue=0 wait=0ms service=12ms status=304 bytes=0
2012-04-04T14:07:05+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/links_bar.png dyno=web.1 queue=0 wait=0ms service=17ms status=304 bytes=0
2012-04-04T14:07:05+00:00 app[web.1]: cache: [GET /images/cart_background.png] miss
2012-04-04T14:07:05+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/cart_background.png dyno=web.1 queue=0 wait=0ms service=4ms status=304 bytes=0
2012-04-04T14:07:05+00:00 app[web.1]: cache: [GET /images/home_page_image.png] miss
2012-04-04T14:07:05+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/home_page_image.png dyno=web.1 queue=0 wait=0ms service=6ms status=304 bytes=0
2012-04-04T14:07:05+00:00 app[web.1]: cache: [GET /images/find_wine.png] miss
2012-04-04T14:07:05+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/find_wine.png dyno=web.1 queue=0 wait=0ms service=10ms status=304 bytes=0
2012-04-04T14:07:05+00:00 app[web.1]: cache: [GET /images/footer_tile.jpg] miss
2012-04-04T14:07:05+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/footer_tile.jpg dyno=web.1 queue=0 wait=0ms service=7ms status=304 bytes=0
2012-04-04T14:07:06+00:00 app[web.1]: cache: [GET /images/social.png] miss
2012-04-04T14:07:06+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/hr_dark.jpg dyno=web.1 queue=0 wait=0ms service=5ms status=304 bytes=0
2012-04-04T14:07:06+00:00 app[web.1]: cache: [GET /images/hr_dark.jpg] miss
2012-04-04T14:07:06+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/social.png dyno=web.1 queue=0 wait=0ms service=6ms status=304 bytes=0
2012-04-04T14:07:06+00:00 app[web.1]: cache: [GET /images/credit_cards.png] miss
2012-04-04T14:07:06+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/credit_cards.png dyno=web.1 queue=0 wait=0ms service=14ms status=304 bytes=0
2012-04-04T14:07:06+00:00 app[web.1]: cache: [GET /images/money_back.png] miss
2012-04-04T14:07:06+00:00 heroku[router]: GET stormy-fog-6888.herokuapp.com/images/money_back.png dyno=web.1 queue=0 wait=0ms service=5ms status=304 bytes=0
Schema file: for the inventories table
create_table "inventories", :force => true do |t|
t.integer "wine_id"
t.integer "warehouse_id"
t.integer "stock"
t.float "price"
t.integer "quantity_id"
t.timestamp "created_at"
t.timestamp "updated_at"
t.boolean "available", :default => false
t.boolean "discount", :default => false
t.string "markupprofile_id", :limit => 45
t.string "discountprofile_id", :limit => 45
t.float "discount_price"
t.boolean "special", :default => false
end
Use the actual TrueClass, not a string, and Rails will translate it into the correct query for you.
Correct:
"inventories.special = ?", true
Incorrect:
"inventories.special = ?", "true"
It's not throwing an error because the second one still produces a valid query, it's just looking for records where special is a string with the actual t-r-u-e characters in it.