mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
Just a white page #301
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Appercy on GitHub (Apr 2, 2023).
Hello! im kinda new into this, but i have a problem:
everytime i try to install planka everything works fine, except that the website wont load, its just a blank white page! nothing else! :(
here is my .env
BASE_URL=http://test.ludaro.de DATABASE_URL=postgresql://planka:mydatabasepassword@localhost/planka SECRET_KEY=secreeti know it has to do something with the baseurl i already tried my own domain (ludaro.de) with a subdomain and it doesnt work,
127.0.0.1 or localhost:1337 doesnt work either.
@Appercy commented on GitHub (Apr 2, 2023):
on localhost it works fine! :(
@meltyshev commented on GitHub (Apr 3, 2023):
Hi! Could you check the source-code of the white page and find there
<script defer="defer" src="...">. What address is specified in thesrcattribute? Do you run it in the docker?I have a guess that
BASE_URLenvironment variable in the.envfile overrides with some more globally defined one and its value becomeshttp://localhost:1337.@Appercy commented on GitHub (Apr 4, 2023):
Hello @meltyshev Thanks for answering so quickly,
Im kinda new into domain stuff so bare with me, if anything is wrong be free to correct me :)
I dont have any domain setup to my server, i just want to access it with the ip, (ex. http://202.61.199.200:1337) for right now, i wan to add a domain later through ngnix or apache and virtual hosts
im not running it in docker, as i tried that and it resulted in the same issue, :)
here is the source attribute you asked about:
<%= BASE_URL %>/static/js/main.291b51df.jsQuick Question, if i dont have any domain, and just want to use it with an ip, i enter the adress? (example)
BASE_URL=http://202.61.199.200:1337or is that worng? because thats how its setup rn
@Appercy commented on GitHub (Apr 4, 2023):
i just now tried it through a docker container, still nothing of use.
its just a white blank page
@meltyshev commented on GitHub (Apr 4, 2023):
Everything should work fine if you specify just an IP address without a domain.
That's exactly what the problem is, it shouldn't have
<%= BASE_URL %>there (if you checked the source code through your browser). Can you check if theindex.ejsfile is in theserver/viewsfolder?@Appercy commented on GitHub (Apr 4, 2023):
Yes i checked it through my browser :3
@Appercy commented on GitHub (Apr 4, 2023):
Yes, in /server/views there is only 1 file
Index.ejs
@Appercy commented on GitHub (Apr 4, 2023):
Yes, im /server/views there is only 1 file
Index.ejs
@meltyshev commented on GitHub (Apr 4, 2023):
Very strange... Probably the index file isn't loaded from that location 🤔
Could you also check that there is no
index.htmlorindex.ejsin theserver/publicfolder.You can also try renaming the file
server/views/index.ejsto any other file, restart the server and see what happens. If the source code is the same as last time, then obviously this file is loaded somehow directly and bypasses the templating engine.@Appercy commented on GitHub (Apr 4, 2023):
I just reinstalled it and it worked >~< thanks
@tka85 commented on GitHub (Jul 20, 2023):
I'm facing the same problem. Can we please reopen this issue?
Running in docker. Reverse proxy is Nginx.
I see a white page. Viewing source in browser gives:
I attach to the container and a quick find for
index.*files returns:In docker-compose the
BASE_URLenv var is set tohttp://localhost:1337. Since I use a rev proxy, I have changed in the docker-compose also theexpose: 3000:1337toport: 1337. The rev proxy works fine because I can actually access from the outside the Planka logo image ashttps://planka.mydomain.com/logo192.pngwhich as you see in the HTML above is the onlyhrefthat is not prefixed withhttp://localhost:1337.Any ideas what I'm missing here?
@tka85 commented on GitHub (Jul 21, 2023):
Resolved.
I changed in docker-compose
BASE_URL=https://planka.mydomain.comand it works fine.