Update deployment.md
This commit is contained in:
parent
2e0788d22f
commit
5bb345b955
1 changed files with 2 additions and 2 deletions
|
@ -29,6 +29,8 @@ These are the steps that happen when you deploy the application.
|
||||||
|
|
||||||
You'll only need to do this if you're testing the production environment locally.
|
You'll only need to do this if you're testing the production environment locally.
|
||||||
|
|
||||||
|
Note: The installation steps assume you are using a Unix-like shell. If you are using Windows, you will need to use `copy` in place of `cp`.
|
||||||
|
|
||||||
1. Clone this repository and `cd` into it
|
1. Clone this repository and `cd` into it
|
||||||
2. `$ npm install`
|
2. `$ npm install`
|
||||||
3. Install MongoDB and make sure it is running
|
3. Install MongoDB and make sure it is running
|
||||||
|
@ -39,8 +41,6 @@ You'll only need to do this if you're testing the production environment locally
|
||||||
8. Since production assumes your environment variables are in the shell environment, and not in a `.env` file, you will have to run `export $(grep -v '^#' .env | xargs)` or a similar command, see this [Stack Overflow answer](https://stackoverflow.com/a/20909045/4086967).
|
8. Since production assumes your environment variables are in the shell environment, and not in a `.env` file, you will have to run `export $(grep -v '^#' .env | xargs)` or a similar command, see this [Stack Overflow answer](https://stackoverflow.com/a/20909045/4086967).
|
||||||
9. `$ npm run start:prod`
|
9. `$ npm run start:prod`
|
||||||
|
|
||||||
NOTE- Windows users should use `copy` instead of `cp` during installation.
|
|
||||||
|
|
||||||
## Self Hosting - Heroku Deployment
|
## Self Hosting - Heroku Deployment
|
||||||
|
|
||||||
If you are interested in hosting and deploying your own p5.js Web Editor instance, you can! It would be the same as the official editor instance at editor.p5js.org, except with a different domain, and you would be in charge of the maintenance. We recommend using Heroku as you can host it for free.
|
If you are interested in hosting and deploying your own p5.js Web Editor instance, you can! It would be the same as the official editor instance at editor.p5js.org, except with a different domain, and you would be in charge of the maintenance. We recommend using Heroku as you can host it for free.
|
||||||
|
|
Loading…
Reference in a new issue