mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-07-21 04:25:24 -04:00
Default Setup API Errors (Needs documentation) #4
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 @MikePadge on GitHub (Sep 21, 2021).
git clone https://github.com/revoltchat/self-hosted/issues/new
cp .env.example .env
docker-compose up -d
(Note I do not have a local gui on the server and dns is not setup correctly), but from the same subnet, navigating to it by :5000 loads the revolt login splash screen, but the api is dead.
Resolved by editing /etc/hosts and server hostname. If the server name convention is not explicitly set to match .env settings, revolt does not like this.
@BoneRattler commented on GitHub (Oct 1, 2021):
Also noted. Pretty sure this will close issue #8 as well.
@CadillacCoupeDeVille commented on GitHub (Oct 6, 2021):
I ran into the same issue, api seems to be offline
could you be more clear please and/or post a snippet of
.envandhostsfiles that illustrate said 'convention' ?@BakungaBronson commented on GitHub (Oct 6, 2021):
Same here. Any assistance moving forward would be much appreciated.
@CadillacCoupeDeVille commented on GitHub (Oct 6, 2021):
alright so after several tries I finally got it to work, in my case I run it from a local virtual machine (a minimal "netinst" Debian 10 in this case)
the ip address of the vm (accessible from the host OS) is let's say 192.168.xx.xx
I edited the
.envfile like this:so instead of
http://local.revolt.chatwhich of course is unknown to the host, I simply replaced it with the vm's assigned ip addressbasically what works for me is:
ssh into the vm, then
edit
.envand replacehttp://local.revolt.chatwith the vm own IP address assigned from host, 192.168.xx.xx(don't forget about AUTUMN_S3_ENDPOINT too as in the example above)
then
docker-compose up -dthen open a browser in your host OS and go to 192.168.xx.xx:5000
in top left corner of the page you should get something like this:
after all this, apparently it works. haven't tested ALL features yet but it's functional.
also I did not edit any
hostsfile, and I have not tried (yet) to run Revolt from a container without a vm involved@insertish commented on GitHub (Oct 9, 2021):
The quick start configuration is intended for your local machine only, you have to configure the environment file to point to whatever external domain (or external / local IP).
I don't think there's anything to fix here?
@insertish commented on GitHub (Oct 30, 2021):
Closing due to inactivity.