Skip to content

Commit

Permalink
Updated README info v2.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmartinez287 authored and rfay committed Nov 8, 2023
1 parent c849d47 commit a002105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ddev/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ web_extra_exposed_ports:
# https://github.com/vitejs/vite/discussions/3396
web_extra_daemons:
- name: astro-dev-daemon
command: "npm run dev -- --host"
command: "sleep 3 && npm run dev -- --host" # sleep avoids race conditions
directory: /var/www/html
hooks:
post-start:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ All commands are run from the root of the project, from a terminal:

DDEV already has all the dependencies included.

1. Run `ddev start && ddev npm install && ddev npm run build` to set up the project’s dependencies. If it fails then run `ddev npm cache clean --force && ddev npm install && ddev restart`. This should be a one time setup.
1. Run `ddev start && ddev npm install` to set up the project’s dependencies. Then `ddev npm run build`. If anything fails then run `ddev npm cache clean --force && ddev npm install && ddev restart`. This should be a one time setup.
3. `ddev npm run build` can be found at https://<projectname>.ddev.site and `ddev npm run dev` is found at https://<projectname>.ddev.site:4321.The dev server has Vite HMR (hot module reloading) among other features. The site will automatically refresh as you work on it, displaying errors in the relevant terminal or browser console.

To generate a static copy of the site, run `ddev npm run build`. The contents of the `dist/` folder are exactly what get [deployed to Cloudflare Pages](#build--deployment). You can preview locally by running `ddev npm run preview` or using a tool like [`serve`](https://www.npmjs.com/package/serve).
Expand Down

0 comments on commit a002105

Please sign in to comment.