djyde / cusdis

lightweight, privacy-friendly alternative to Disqus.
https://cusdis.com
GNU General Public License v3.0
2.6k stars 224 forks source link

I got an error when deploy on Railway #250

Open issaTan opened 1 year ago

issaTan commented 1 year ago

Thank you for your great job!

When I deploy cusdis on Railway, I got this error: The **VOLUME** keyword is banned in Dockerfiles. Use Railway volumes instead. https://docs.railway.app/reference/volumes.

And I'm a Starter Plan member on Railway, it's because of my account or the settings with cusdis?

Vinfall commented 1 year ago

From my prior experience with Dev plan, just comment out this line and everything should be fine:

https://github.com/djyde/cusdis/blob/cb4048120a926d63a939fa1fed29c43833f60be7/Dockerfile#L3

greatzh commented 9 months ago

I encountered this issue also, and I have commented on this line but deployment still failed, is there any other solutions for this problem?

Vinfall commented 9 months ago

I switched to Vercel + self-hosted database now as Railway sunsets dev plan. BTW Vercel has serverless database support too so you can use that instead since Railway requires a $5 minimum cost per month.

The comment above is based on deployment warning on Railway, IIRC it says something like mounting /data is not allowed so I comment the line and it works. Maybe posting the error message here would help.

greatzh commented 9 months ago

Thank you for your assistance. The error messages encountered during the deployment process are as follows: The VOLUME keyword is banned in Dockerfiles. Use Railway volumes instead. https://docs.railway.app/reference/volumes

Vinfall commented 9 months ago

Oh, that's the same error I had on Railway. If commenting this line does not help, I don't know either🤷🏼