From 063607662e5508927c8f31d2290b3ac035426647 Mon Sep 17 00:00:00 2001 From: Jaime Smeke Date: Wed, 9 Dec 2020 18:04:08 -0600 Subject: [PATCH] Add build.sh details to Vercel documentation (#35) --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4ef68ad..eb7aee7 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ class AppServiceProvider extends Provider ## Deployment Examples -These examples assumes your workflow will be to author content **locally** and _not_ using the control panel in production. +These examples assume your workflow will be to author content **locally** and _not_ using the control panel in production. ### Deploy to [Netlify](https://netlify.com) @@ -122,12 +122,16 @@ Be sure to also update these in your `s3` disk configuration: Deployments are triggered by committing to Git and pushing to GitHub. +- Create a new file called `./build.sh` and paste the code snippet below. +- Run `chmod +x build.sh` on your terminal to make sure the file can be executed when deploying. - Import a new site in your [Vercel](https://vercel.com) account - Link the site to your desired GitHub repository - Add build command `./build.sh` - Set output directory to `storage/app/static` - Add environment variable in your project settings: `APP_KEY` `` -- Create the following `build.sh` file to install PHP, Composer, and run the `ssg:generate` command: + +#### Code for build.sh +Add the following snippet to `build.sh` file to install PHP, Composer, and run the `ssg:generate` command: ``` #!/bin/sh