summaryrefslogtreecommitdiff
path: root/docs/src/pages/installation.md
diff options
context:
space:
mode:
authorGravatar Jonathan Neal <jonathantneal@hotmail.com> 2021-08-19 01:07:08 -0400
committerGravatar GitHub <noreply@github.com> 2021-08-18 22:07:08 -0700
commite66872125d6a5e5246aeb7a2f1d5784d5c5493b7 (patch)
tree05bfcb3ec8c33a798fdc32b8d1633151e7a8a113 /docs/src/pages/installation.md
parentece0953aed6879b4e7bf2b812b4a20508181b496 (diff)
downloadastro-e66872125d6a5e5246aeb7a2f1d5784d5c5493b7.tar.gz
astro-e66872125d6a5e5246aeb7a2f1d5784d5c5493b7.tar.zst
astro-e66872125d6a5e5246aeb7a2f1d5784d5c5493b7.zip
add dev script, switch documentation from advising start to dev script (#1141)
Diffstat (limited to 'docs/src/pages/installation.md')
-rw-r--r--docs/src/pages/installation.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/pages/installation.md b/docs/src/pages/installation.md
index 440268e3b..ea6ff9d12 100644
--- a/docs/src/pages/installation.md
+++ b/docs/src/pages/installation.md
@@ -86,13 +86,13 @@ You can now replace the placeholder "scripts" section of your `package.json` fil
```diff
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
-+ "start": "astro dev",
++ "dev": "astro dev",
+ "build": "astro build"
},
}
```
-The [`start`](#start-astro) command launches the Astro Dev Server on `http://localhost:3000`. Once your project is ready, the [`build`](#build-astro) command outputs your project to the `dist/` directory. [Read more about deploying Astro in the Deploy guide.](/guides/deploy)
+The [`dev`](#start-astro) command launches the Astro Dev Server on `http://localhost:3000`. Once your project is ready, the [`build`](#build-astro) command outputs your project to the `dist/` directory. [Read more about deploying Astro in the Deploy guide.](/guides/deploy)
### Create your first page
@@ -135,7 +135,7 @@ You can create more pages in the `src/pages` directory, and Astro will use the f
## [Start Astro](#start-astro)
```bash
-npm start
+npm run dev
```
Astro will now start serving your application on `http://localhost:3000`. By opening this URL in your browser, you should see the Astro's “Hello, World”