Add dev script
This commit is contained in:
parent
24ec2663ce
commit
b92f803b97
|
@ -1 +1,2 @@
|
|||
web: NODE_ENV=development node server.js
|
||||
db: redis-server --port 6379
|
|
@ -6,6 +6,4 @@ The project is sponsored by [Cloudflare](https://cloudflare.com) and [Heroku](ht
|
|||
|
||||
## Development
|
||||
|
||||
The website was built using [create-react-app](https://github.com/facebookincubator/create-react-app). This is the app you see when you run `yarn start`. However, none of the package links will work.
|
||||
|
||||
To start the backend, use `yarn run server`. This will start the backend so the website (which is really just a static HTML file) can serve as a proxy for package requests.
|
||||
To start the server, use `yarn dev`. This will start the backend so the website (which is really just a static HTML file) can serve as a proxy for package requests. Then, start the app in another shell with `yarn start`.
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
"scripts": {
|
||||
"start": "node scripts/start.js",
|
||||
"build": "node scripts/build.js",
|
||||
"serve": "heroku local -f Procfile.local -p 3001",
|
||||
"test": "node scripts/test.js --env=jsdom"
|
||||
"test": "node scripts/test.js --env=jsdom",
|
||||
"dev": "heroku local -f Procfile.dev -p 3001"
|
||||
},
|
||||
"dependencies": {
|
||||
"algoliasearch": "^3.24.3",
|
||||
|
|
Loading…
Reference in New Issue