-
Notifications
You must be signed in to change notification settings - Fork 11
Traduction de la FAQ : Déploiement avec Netlify #43
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
Merged
+14
−16
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,26 @@ | ||
--- | ||
title: Déploiement sur Netlify (EN) | ||
title: Déploiement sur Netlify | ||
description: Comment déployer une application Nuxt.js sur Netlify ? | ||
--- | ||
|
||
# How to deploy on Netlify? | ||
# Comment déployer sur Netlify? | ||
|
||
<p style="width: 294px;position: fixed; top : 64px; right: 4px;" class="Alert Alert--orange"><strong>⚠Cette page est actuellement en cours de traduction française. Vous pouvez repasser plus tard ou <a href="https://github.com/vuejs-fr/nuxt" target="_blank">participer à la traduction</a> de celle-ci dès maintenant !</strong></p> | ||
Le déploiement vers [Netlify](https://www.netlify.com) est rapide grâce à la **génération** de projets **statiques** NuxtJs | ||
|
||
Deploying to [Netlify](https://www.netlify.com) is a low friction option for getting a __statically generated__ Nuxt.js site online quickly. | ||
Le déploiement fonctionne avec la méthode `nuxt generate` qui permet de générer une version statique de votre projet vers le dossier `/dist`, c'est dans ce dossier que Netlify va déployer votre projet vers le web. | ||
|
||
The core of the process leverages the `nuxt generate` command during deployment to build a static version of your Nuxt.js app into a `dist` directory. The contents of this directory are then deployed to a production URL. | ||
### Débuter la configuration du déploiement | ||
|
||
## Getting Started | ||
Choisissez l'option _"New site from Git"_ sur le dashboard Netlify. Maintenant il vous suffit de renseigner les sources de votre dépôt en choisissant votre fournisseurs de dépôts (Github, Gitlab, BitBucket), sélectionnez le dépôt à déployer et continuez. Puis vous arriverez vers l'étapes: _"Build options, and deploy!"_ | ||
|
||
Press the _"New site from Git"_ button on the Netlify dashboard. Authenticate with your repository host, select a repository to deploy, and continue. You should land on step 3: _"Build options, and deploy!"_ | ||
### Configuration : | ||
|
||
## Configure: | ||
1. __Branch to deploy:__ `master` (la branche qui contient votre site) | ||
2. __Build command:__ `npm run generate` | ||
3. __Publish directory:__ `dist` | ||
|
||
1. __Branch to deploy:__ `master`, or which-ever branch you prefer | ||
1. __Build command:__ `npm run generate` | ||
1. __Publish directory:__ `dist` | ||
> Vous avez la possibilité de choisir des variables d'environnement grâce au bouton _"Advanced"_. Les variables d'environnements sont utiles pour ne pas dévoiler les identifiants d'une API par exemple. Netlify offre aussi la possibilité de créer des [variables par défauts](https://www.netlify.com/docs/build-settings/#build-environment-variables). | ||
|
||
> Optionally, you can add additional ENV variables via the _"Advanced"_ button. These can be helpful for swapping in alternative API credentials and so on. Netlify also provides a [default ENV variables](https://www.netlify.com/docs/build-settings/#build-environment-variables) which can be read by your Nuxt.js application at build time. | ||
Il ne vous reste plus qu'a cliquer sur _"Deploy site"_ pour immédiatement déployer votre site web avec la méthode `nuxt generate`. Votre site Netlify à une URL aléatoire qui lui est assigné. | ||
|
||
Click _"Deploy site"_ to immediately trigger a deploy. Your Netlify site will be assigned a random URL and deployed using the `nuxt generate` command. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. L'original mentionne la commande |
||
|
||
Voilà! Your Nuxt.js application is now hosted on Netlify! | ||
Voilà c'est tout ! Votre application Nuxt.js est maintenant héberger avec Netlify ! |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il manque un espace après cette phrase, elle devrait être à la ligne suivante.