You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/release/getting-started/quick-start.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,17 @@ We'll cover these steps:
11
11
5. Building your app to be deployed to production.
12
12
6. Deploying your app to Netlify.
13
13
14
-
## Install Ember
14
+
## Install ember-cli
15
15
16
-
You can install Ember with a single command using [npm](https://docs.npmjs.com/cli),
16
+
You can install `ember-cli` globally with a single command using [npm](https://docs.npmjs.com/cli),
17
17
Type this into your terminal:
18
18
19
19
```bash
20
20
npm install -g ember-cli
21
21
```
22
22
23
+
This will make the `ember` script available everywhere on your computer. If you prefer not to install `ember-cli` globally you can run whenever you need to using `npx ember-cli`. Most places in this guide assume that you have installed `ember-cli` globally so if you ever see a command like `ember new` remember that you can always run `npx ember-cli new` instead.
24
+
23
25
Don't have npm? [Learn how to install Node.js and npm here](https://docs.npmjs.com/getting-started/installing-node).
24
26
For a full list of dependencies necessary for an Ember CLI project, visit the [Ember CLI Guides - Installing](https://cli.emberjs.com/release/basic-use/).
25
27
@@ -57,11 +59,13 @@ After a few seconds, you should see output that looks like this:
Build successful (9761ms) – Serving on http://localhost:4200/
66
+
➜ Local: http://localhost:4200/
67
+
➜ Network: use --host to expose
68
+
➜ press h + enter to show help
65
69
```
66
70
67
71
(To stop the server at any time, type Ctrl-C in your terminal.)
@@ -97,7 +101,7 @@ In your editor, open `app/templates/application.gjs` and change it to the follow
97
101
</template>
98
102
```
99
103
100
-
Ember detects the changed file and automatically reloads the page for you in the background.
104
+
Vite detects the changed file and automatically reloads the page for you in the background.
101
105
You should see that the welcome page has been replaced by "PeopleTracker".
102
106
You also added an `{{outlet}}` to this page,
103
107
which means that any route will be rendered in that place.
@@ -413,22 +417,18 @@ it's time to get it ready to deploy to our users.
413
417
To do so, run the following command:
414
418
415
419
```bash
416
-
ember build --environment=production
420
+
npm run build
417
421
```
418
422
419
-
The `build`command packages up all of the assets that make up your
423
+
The `scripts.build`script in your `package.json` runs `vite build`, which packages up all of the assets that make up your
420
424
application—JavaScript, templates, CSS, web fonts, images, and
421
425
more.
422
426
423
-
In this case, we told Ember to build for the production environment via the `--environment` flag.
427
+
In this case, we told Vite to build for the production environment because running `vite build` without specifying a `--mode` defaults to `--mode production`.
424
428
This creates an optimized bundle that's ready to upload to your web host.
425
429
Once the build finishes,
426
430
you'll find all of the concatenated and minified assets in your application's `dist/` directory.
427
431
428
-
The Ember community values collaboration and building common tools that everyone relies on.
429
-
If you're interested in deploying your app to production in a fast and reliable way,
430
-
check out the [Ember CLI Deploy](http://ember-cli-deploy.com/) addon.
431
-
432
432
If you deploy your application to an Apache web server, first create a new virtual host for the application.
433
433
To make sure all routes are handled by `index.html`,
434
434
add the following directive to the application's virtual host configuration:
@@ -477,7 +477,7 @@ Now you are ready to deploy your app to production on Netlify platform. There ar
477
477
You may need to re-create your `dist` directory to include changes made to `_redirects` file by running this command
478
478
479
479
```bash
480
-
ember build --environment=production
480
+
npm run build
481
481
```
482
482
483
483
Once you are logged-in to your Netlify account and in the "Sites" section, you should see the Netlify drag and drop area
0 commit comments