New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot access admin panel from cloned strapi application #1892
Comments
Have you done the following?
|
@atlas365 make sure you purge the package-lock.json file (if there is one) then run |
@atlas365 that looks like something is very broken. Is this project public on github somewhere? My guess is that the build folders aren't being uploaded so you may need to run |
Unfortunately this isn't on a public github. And I tried to run 'npm run setup:build' but I got an error message saying 'missing script: setup:build' and I didn't see an option for setup:build in the package.json. |
Yeah @atlas365 typically that is only for --dev projects. If you look on the private repo in |
Yeah no build folder. I can see it's being ignored in the .npmignore. Is the best way to fix that to change the .npmignore? Should I restart my project using --dev? |
Oh wait nevermind that's not gitignore |
@atlas365 no don't use --dev unless you are modifying the adminUI. .npmignore shouldn't matter, but if it is in .gitignore then remove it. You should however be able to create a new project and grab all the |
Perfect I think that's what I'm going to do then. Thank you very much for your helpful and very timely replies! |
Even after following above given steps, I'm also facing this issue: npm ERR! A complete log of this run can be found in: npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: npm ERR! A complete log of this run can be found in: |
i got this solved by using |
I got this solved by deleting the build folder from .gitignore file |
Informations
What is the current behavior?
Cannot access the admin panel from a strapi application that was cloned from a git repo.
Steps to reproduce the problem
My team is trying to standardize strapi setup for the dev environment. One of our members has gone through the process of building users, permissions, roles, controllers and has populated the mongo db. I have pulled down her work and used mongorestore to populate my mongo instance with what she had in her tables. The endpoints work fine but I cannot access the admin panel or the login screen. I only see the index.html page.
What is the expected behavior?
I think I should be able to log in using the admin user in the database and access the admin panel. Why is strapi always routing to index.html?
The text was updated successfully, but these errors were encountered: