10 Apr 2024 |
Alexandru Lupu | can you check if this file exists on your disk ? | 18:07:32 |
Alexandru Lupu | ls -lah /home/ubuntu/decidim_application/public/decidim-packs/css/decidim_core-1423f093.css | 18:07:38 |
jonathan1018 | In reply to @telegram_500738289:t2bot.io do u have nginx ? Not yet. On my dev server I have it configure like reverse proxy but not yet in my new "production" server | 18:09:13 |
jonathan1018 | In reply to @telegram_500738289:t2bot.io ls -lah /home/ubuntu/decidim_application/public/decidim-packs/css/decidim_core-1423f093.css ubuntu@master-infranux:~/decidim_application/log$ ls -lah /home/ubuntu/decidim_application/public/decidim-packs/css/decidim_core-1423f093.css
-rw-rw-r-- 1 ubuntu ubuntu 425K avril 7 14:10 /home/ubuntu/decidim_application/public/decidim-packs/css/decidim_core-1423f093.css
| 18:12:50 |
Alexandru Lupu | i am assuming you already ran RAILS_ENV=production bin/rails assets:precompile | 18:08:18 |
jonathan1018 | yes file exists | 18:13:04 |
jonathan1018 | In reply to @telegram_500738289:t2bot.io then add to your virtual host a path like in the puma configuration ? | 18:14:12 |
Alexandru Lupu | In reply to @jonathan1018:matrix.org Not yet. On my dev server I have it configure like reverse proxy but not yet in my new "production" server how did you configured as a reverse proxy without NGINX / APACHE ? | 18:14:02 |
jonathan1018 | Yes, with nginx, but not on this server | 18:16:05 |
jonathan1018 | on my old decidim server :8 | 18:16:26 |
jonathan1018 | * on my old decidim server :( | 18:16:32 |
jonathan1018 | In reply to @telegram_500738289:t2bot.io i am assuming you already ran RAILS_ENV=production bin/rails assets:precompile Yes already done, compile ok | 18:17:03 |
jonathan1018 | In reply to @telegram_500738289:t2bot.io how did you configured as a reverse proxy without NGINX / APACHE ? on my new server there is only puma, no reverse proxy nginx yet | 18:18:07 |
jonathan1018 | In reply to @telegram_500738289:t2bot.io location /decidim-packs/ { root /home/ubuntu/decidim_application/public/decidim-packs; } is it possible in puma.rb ? | 18:22:29 |
Alexandru Lupu | HMMMZ | 18:22:25 |
Alexandru Lupu | In reply to @jonathan1018:matrix.org is it possible in puma.rb ? no | 18:22:47 |
jonathan1018 | I feel like I'm annoying you, I'm sorry 😕 | 18:25:58 |
Alexandru Lupu | and set it like config.public_file_server.enabled = true # ENV['RAILS_SERVE_STATIC_FILES'].present ? | 18:25:47 |
Alexandru Lupu | ok, can you edit your config/environments/production.rb | 18:25:17 |
Alexandru Lupu | and search for config.public_file_server.enable d | 18:25:29 |
Alexandru Lupu | jonathan, is just evening and i am grumpy :) if you annoy me, i stop answering :P | 18:27:17 |
Alexandru Lupu | you run a different env Setup that i am used to, and i just need to put in some extra effort to think on solutions :) | 18:28:33 |
jonathan1018 | Thank you a lot :) | 18:34:30 |
jonathan1018 | and sorry for the headache | 18:34:54 |
jonathan1018 | ubuntu@master-infranux:~/decidim_application/config$ grep file_server environments/production.rb
config.public_file_server.enabled = true # ENV['RAILS_SERVE_STATIC_FILES'].present? | 18:35:04 |
jonathan1018 | * ubuntu@master-infranux:~/decidim\_application/config$ grep file_server environments/production.rb
config.public\_file\_server.enabled = true # ENV\['RAILS\_SERVE\_STATIC\_FILES'\].present?
| 18:35:56 |
jonathan1018 | Oh it yorks 🤩 ! | 18:38:11 |
jonathan1018 | http://master-infranux.infranux.ch:3000 | 18:38:35 |
jonathan1018 | * Oh it works 🤩 ! | 18:39:03 |
jonathan1018 | Thanks a lot !!!!! | 18:39:17 |