Hey all, any other <railway.app> users? i got my ...
# developers
a
Hey all, any other railway.app users? i got my instance of cal up and running on railway.app following the main instructions. But I am wondering is it possible to run @calcom/web and @calcom/api on the same instance? the start up command i am using is
turbo run start --scope=@calcom/web --scope=@calcom/api
that only seems to start the web project
z
cc @alannnc
I'm not railway expert but if this is similar to Vercel then you cannot run two apps on the same instance. I could be wrong
a
is the app set up in such a way that i can run the api on one instance and everything else on the other?
my use case is that I am building my stand alone app and handling the calendar portion of my app via self hosted cal the cal UI would only be used by app admins and the rest of the communcation to my self host cal would be through the rest api
a
I haven't tested that scenario but it looks like railway does the same that vercel with monorepos. Have you taken a look of this? https://docs.railway.app/deploy/monorepo
a
nice. thanks i will take a look at those docs. i am new to these git submodules 😅
a
Yeah let us know if you manage to have success. This has been asked recently a few times. excited
a
so it seems that i have gotten it to work, albiet not in an automated fashion i had to • fork /calcom/cal.com • fork /calcom/api • connect those two repos via tweaking the submodules to match the new repo names • recloning my forked cal.com repo using
git clone --recurse-submodules -j8 <https://github.com/me/cal-fork.git>
• build locally
railway run npx turbo run build
• set up two empty projects in railway ◦ on the api project change the start up command to
yarn workspace @me/cal-api-fork dev
â—¦ on the web project change the start up command to
npx turbo run @calcom/web#start
• and manually do the
railway up
command twice. once for the web and once for the api • they both share variables in the railway app and talk to the same db going to see how I can optimize this. cause the package for the ‘api’ has all of the files from the full fat build and its like 2gb so uploading that takes a min
had to delete the /apps/swagger folder for some reason locally. i suspect there is something autogenerated in there that would have to change
a
Awesome! Thanks for sharing, will try to replicate.