How do I configure my replit to use subdirectory as a primary directory of the app?

How do I configure my replit to use subdirectory as a primary directory of the app ?

I have a git repository that has two folders.

  • frontend
  • backend

frontend contains an Angular app and backend contains a SpringBoot java code.

I am able to successfully import the repository into Replit but unable to setup the Angular app because repl.it seems to treat my root directory as the main directory.

Can someone tell me how I can seupt the Replit to just use the fronted subdirectory ?

look at the .replit file ( it might be hidden) and look for the run command.
You can alter this command to run anything within a subdirectory. For instance for my repl I’m running Astro a few levels down →
run = "cd astro2/nuclear-nadir; npm run dev"

1 Like