no need for headless setup now, in theory

This commit is contained in:
Siddharth Singh 2024-09-17 18:25:36 +05:30
parent 8c87e87a37
commit 7b5cbdb525
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,6 @@ WORKDIR /app
RUN mkdir -p data RUN mkdir -p data
COPY . . COPY . .
RUN deno cache src/server.ts RUN deno cache src/server.ts
RUN deno task headless:setup
RUN apt-get update && apt-get install -y unzip curl RUN apt-get update && apt-get install -y unzip curl
RUN deno task soapbox RUN deno task soapbox
CMD deno task start CMD deno task start

View file

@ -31,9 +31,10 @@ wait_keypress
ssh -T "root@$GLOBAL_DOMAIN" << EOF ssh -T "root@$GLOBAL_DOMAIN" << EOF
dokku apps:create $INSTANCE_NAME dokku apps:create $INSTANCE_NAME
dokku postgres:link dittodb $INSTANCE_NAME dokku postgres:link dittodb $INSTANCE_NAME
dokku docker-options:add $INSTANCE_NAME build '--build-arg DITTO_NSEC="$NSEC"' dokku config:set --no-restart $INSTANCE_NAME DITTO_NSEC="$NSEC"
dokku docker-options:add $INSTANCE_NAME build '--build-arg DITTO_UPLOADER_CONFIG="$UPLOADER_CFG"' dokku config:set --no-restart $INSTANCE_NAME DITTO_UPLOADER="nostrbuild"
dokku docker-options:add $INSTANCE_NAME build '--build-arg DITTO_DOMAIN="https://$INSTANCE_DOMAIN"' dokku config:set --no-restart $INSTANCE_NAME NOSTRBUILD_ENDPOINT="https://nostr.build/api/v2/upload/files"
dokku config:set $INSTANCE_NAME LOCAL_DOMAIN="https://$INSTANCE_DOMAIN"
EOF EOF
REMOTE_NAME="tribes-$INSTANCE_NAME" REMOTE_NAME="tribes-$INSTANCE_NAME"