Skip to content
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

The project work fine but can't get the static files (npm run generate) #1

Open
Yakir051 opened this issue Aug 27, 2019 · 1 comment

Comments

@Yakir051
Copy link

Hi,
Everything is working fine.
But i want to run the project from the dist folder after using "npm run generate" and it's not working :(
Tried also with local-server (xampp or mamp), and still the same problem.
FILE_NOT_FOUND errors, I have also solved the errors (for example in index.html) but still it's not working.
Any idea?

@gusbemacbe
Copy link

Hi @Yakir051

If you are using macOS, forget XAMPP/Mamp, use Homebrew instead, with the which you will install Apache, MariaDB, npm and PHP. Do like:

  1. Clone the repository locally;
  2. Locate the project, running the command cd;
  3. Run the yarn install;
  4. Run then:
npm run build
npm run generate
npm start

When npm start starts, enter the localhost:3000 in the browser's address.

If you want to apply it automatically without running the commands on the terminal. Use VSCode.

  1. Open the cloned project with VSCode;
  2. Click the file package.json
  3. In the file package.json, you will see Debug appearing above the scripts, and click it to run, selecting start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants