Unable to self-host with "Single Community"

(#583) Bug Fixed self-hosting

Thread

Comment by @schemen
RexSystem 1 vote originally by @schemen on GitHub
It's a small bug in the setup process. As a workaround, you can run this once everything started up. Please note, do this at your own risk, this changes a flag in the code.
docker exec fluxer-api-1 sed -i \
  's/appPublic\.setup\.configured || current\.single_community_locked/current.single_community_locked/' \
  /usr/src/app/fluxer_api/src/api/admin/controllers/InstanceConfigAdminController.ts
Restart the api container docker restart fluxer-api-1 Now you should be able to finish the setup. Once done, clean up by fully replacing the api container back to the unmodified one:
docker compose down api
docker compose up -d
Please note, this is a blunt tool, and it worked on my instance, it's not fixing the ordering. It's located here: https://github.com/fluxerapp/fluxer/blob/fa3e8525755dae087c03ceaf83b814cbe46c7228/fluxer_api/src/api/admin/controllers/InstanceConfigAdminController.ts#L258