From 5c344e5c2c24fb4532e5999c8b2c18e3e60d01e6 Mon Sep 17 00:00:00 2001 From: Jose Torreblanca Date: Tue, 18 Aug 2020 13:20:13 +0200 Subject: [PATCH 1/4] Updated Readme.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 54bca49c..9044e236 100644 --- a/README.md +++ b/README.md @@ -102,3 +102,17 @@ Then, from within your project folder: npm run build surge public my-project.surge.sh ``` + +### With [Netlify](https://www.netlify.com/) + +Go to https://www.netlify.com/ and create a free account. +1. After, go to https://app.netlify.com/start. +2. And select the source of you code (gitlab, github, bitbucket). +3. And finally Select you repo (project). + +Now, we need to set our deploy settings. +1. You need to set the branch (master). +2. Set the build command in this case is: `npm run build` (this command is in the package.json file). +3. And the publish directory is: `public` (this is the default folder used by svelte for store the build files). + +Finally click on ‘Deploy Site’. From b9ed4ce8ca2d408c469601b327d765d72d907ea4 Mon Sep 17 00:00:00 2001 From: Jose Torreblanca Date: Wed, 19 Aug 2020 17:21:43 +0200 Subject: [PATCH 2/4] Updated netlify deploy steps --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9044e236..bb25a374 100644 --- a/README.md +++ b/README.md @@ -105,10 +105,9 @@ surge public my-project.surge.sh ### With [Netlify](https://www.netlify.com/) -Go to https://www.netlify.com/ and create a free account. -1. After, go to https://app.netlify.com/start. -2. And select the source of you code (gitlab, github, bitbucket). -3. And finally Select you repo (project). +1. Go to https://app.netlify.com/start. +2. And select the source of your code (gitlab, github, bitbucket). +3. And finally Select your repo (project). Now, we need to set our deploy settings. 1. You need to set the branch (master). From cd360a6bd27900e73e4a60151eff92b13f71ca10 Mon Sep 17 00:00:00 2001 From: Jose Torreblanca Date: Wed, 19 Aug 2020 17:22:47 +0200 Subject: [PATCH 3/4] Updated netlify deploy instructions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bb25a374..db9a092b 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ surge public my-project.surge.sh Now, we need to set our deploy settings. 1. You need to set the branch (master). -2. Set the build command in this case is: `npm run build` (this command is in the package.json file). +2. Set the build command, which in this case is: `npm run build` (this command is in the package.json file). 3. And the publish directory is: `public` (this is the default folder used by svelte for store the build files). Finally click on ‘Deploy Site’. From 8c818166448d9838fbfcb41bf6fd34256cccf782 Mon Sep 17 00:00:00 2001 From: Jose Torreblanca Date: Wed, 19 Aug 2020 17:50:37 +0200 Subject: [PATCH 4/4] Changed the deploy method to netlify-cli After some research I've found that there is a netlify-cli. Following the vercel and surge instructions way. --- README.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index db9a092b..7afc18ab 100644 --- a/README.md +++ b/README.md @@ -103,15 +103,18 @@ npm run build surge public my-project.surge.sh ``` -### With [Netlify](https://www.netlify.com/) +### With [Netlify](https://www.netlify.com/) CLI -1. Go to https://app.netlify.com/start. -2. And select the source of your code (gitlab, github, bitbucket). -3. And finally Select your repo (project). +Install `netlify-cli` if you haven't already: -Now, we need to set our deploy settings. -1. You need to set the branch (master). -2. Set the build command, which in this case is: `npm run build` (this command is in the package.json file). -3. And the publish directory is: `public` (this is the default folder used by svelte for store the build files). +```bash +npm install -g netlify-cli +``` + +Then, from within your project folder: + +```bash +netlify deploy --prod +``` -Finally click on ‘Deploy Site’. +Follow the instructions and be sure to set `public` as Publish Directory.