AFFiNE

alanvww
HOBBY

a year ago

Description: AFFiNE - Self-host version

Category: Other

URL: https://railway.app/template/V4HyAi

12 Replies

10 months ago

Hello,

Currently this template fails to deploy, please update the start command of the Affine service to - /bin/sh -c "node ./scripts/self-host-predeploy && node ./dist/index.js"


geongeorge
PRO

7 months ago

Hi @alanvww thank you for this template. Can you share a github repo to this template? Making some changes to affine requires you to edit its code. Like for instance enabling AI on the self hosted version requires this


mikeleet
PRO

5 months ago

hi, thank you for creating this project, is this project maintained?
seems like the connection to Redis is broken and preventing the successful deployment

also to increase the efficiency of the network, i updated the postgres url within Affine to point to internal ipv6 instead of public url of postgres


geongeorge

Hi @alanvww thank you for this template. Can you share a github repo to this template? Making some changes to affine requires you to edit its code. Like for instance enabling AI on the self hosted version requires this

alanvww
HOBBY

4 months ago

Hi, there is no repo for this template. I just fetch the image from the source and connect the database.


mikeleet

hi, thank you for creating this project, is this project maintained?seems like the connection to Redis is broken and preventing the successful deploymentalso to increase the efficiency of the network, i updated the postgres url within Affine to point to internal ipv6 instead of public url of postgres

alanvww
HOBBY

4 months ago

Hi, I just fixed the Redis connection.


brody

Hello,Currently this template fails to deploy, please update the start command of the Affine service to - /bin/sh -c "node ./scripts/self-host-predeploy && node ./dist/index.js"

alanvww
HOBBY

4 months ago

Hi, I believe I’ve identified an issue with my template. When I switch the Redis link to use the private networking domain, it appears that the app is unable to locate the address. However, everything functions correctly when using the public domain.

Attachments


4 months ago


brody

Hello!Perhaps these docs will help you? -https://docs.railway.com/reference/errors/enotfound-redis-railway-internal

alanvww
HOBBY

4 months ago

Still the same issue. Tried add the "?family=0".


rallevondalle
HOBBY

2 months ago

It deploys now, but how do you add the server to Affine?


rallevondalle

It deploys now, but how do you add the server to Affine?

rallevondalle
HOBBY

2 months ago

Ah, just figured it out. Add your Railway URL to Affine env variable AFFINE_SERVER_HOST, that did the job


rallevondalle

Ah, just figured it out. Add your Railway URL to Affine env variable AFFINE_SERVER_HOST, that did the job

vpoussou
HOBBY

2 months ago

Hey, I'm sorry If that is a silly question, but what do you mean exactly by "your railway url" what should the env variable look lile in the end ?


vpoussou

Hey, I'm sorry If that is a silly question, but what do you mean exactly by "your railway url" what should the env variable look lile in the end ?

rallevondalle
HOBBY

2 months ago

Go to Affine --> Networking

Public Networking

Access your application over HTTP with the following domains
*this is your URL*

Copy that into Variable for Affine: AFFINE_SERVER_HOST = YOUR URL (something with ******.up.railway.app)


AFFiNE - Railway Help Station