Hey I tried deploying multiple times for my passenger counter app but it wont work
Github: https://github.com/arshia93/counter-project
Netlify: https://amazing-churros-8f8698.netlify.app/
The same files open successfully on my computer
13 messages · Page 1 of 1 (latest)
Hey I tried deploying multiple times for my passenger counter app but it wont work
Github: https://github.com/arshia93/counter-project
Netlify: https://amazing-churros-8f8698.netlify.app/
The same files open successfully on my computer
How do I fix this?
I'm not positive, but I suspect that this is happening because your git repository has all of the project files in the "cMLr3asK" directory. These files probably need to be in the root of the repository, rather than in a directory.
As @wraith brook mentioned, go to that site settings where u will see or previously given 'npm run build' command.
Above/below that (i don't remember properly) u need to give that directory name to work
@pulsar fjord fixed this?
@wraith brook @wooden mango @fiery gate is this what I need to change? If so, what do I put here?
I don't yet fully understand what root of repository vs root of directory mean :/
put cMLr3asK in base directory and try
I think typically, when I look at a GitHub repository for any project, I expect to see the files that are in main directory of the project. For a simple website, usually the main directory contains the index.html file, the CSS styles file, the script file, etc. Here's an example of the GitHub repository for one of my personal projects:
Looking at the GitHub repository for your project, the thing I see in the main directory is another directory/folder, so that seems odd. And I suspect that Netlify doesn't really understand how to deploy that GitHub repo, because it's not of the expected format. So my suggestion is to make your repository look like something Netlify expects to see by moving the contents of that cMLr3asK directory UP one level into the main directory.
Thank you guys! It's working now after I fixed the issue. This was much easier than using github-pages
Great! I'm curious what you did to fix it. Did Netlify allow a deployment from a directory, as @wooden mango suggested? (i.e., is there some UI in Netlify control panel where you can specify that?)
Yes, it allows us to specify directory (previously i was stuck with this issue )
Good to know!