Skip to content

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
merged 4 commits into from
Jul 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fr/faq/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"title": "Déploiement",
"links": [
{ "name": "Déployer sur Heroku", "to": "/heroku-deployment" },
{ "name": "Déployer avec Netlify (EN)", "to": "/netlify-deployment" },
{ "name": "Déployer avec Netlify", "to": "/netlify-deployment" },
{ "name": "Déployer avec Now", "to": "/now-deployment" },
{ "name": "Déployer sur Dokku", "to": "/dokku-deployment" },
{ "name": "Déployer avec Surge", "to": "/surge-deployment" },
Expand Down
28 changes: 13 additions & 15 deletions fr/faq/netlify-deployment.md
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).
Copy link
Member

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.


> 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L'original mentionne la commande nuxt generate, il faudrait en faire de même dans la version française ;)


Voilà! Your Nuxt.js application is now hosted on Netlify!
Voilà c'est tout ! Votre application Nuxt.js est maintenant héberger avec Netlify !