AFFiNE

alanvww
HOBBY

a year ago

Description: AFFiNE - Self-host version

Category: Other

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

14 Replies

a year 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

10 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

8 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

7 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

7 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

7 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


7 months ago


brody

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

alanvww
HOBBY

7 months ago

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


rallevondalle
HOBBY

5 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

5 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

5 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

5 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)


leonteare
PRO

a month ago

Hey, I’m having a hard time getting this template running. Has anyone actually managed to host it successfully?

Redis keeps giving me trouble, and while the Affine service itself deploys, I just end up with 501/502 errors when I try to load it. I even spun up a new Redis service and updated the env vars, but no luck. Cheers!


leonteare

Hey, I’m having a hard time getting this template running. Has anyone actually managed to host it successfully?Redis keeps giving me trouble, and while the Affine service itself deploys, I just end up with 501/502 errors when I try to load it. I even spun up a new Redis service and updated the env vars, but no luck. Cheers!

vamproductions
HOBBY

a month ago

Hey there, I had the same issue. The image provider shook up things by changing how they serve stuff. basically just change bitnami/redis:7.2.5 to bitnamilegacy/redis:7.2.5 and it should boot fine.
That being said, I still can't get it to let me access the service despite everything seemingly functioning fine myself.

Edit Sr: I needed to tell the railway url to use the port 3010 and now it's working as expected!
Edit Jr: Also tell the affine instance to use affine:stable instead of affine-graphql:stable or you'll be on an outdated version!


AFFiNE - Railway Help Station