darkwire.io/build.sh
Alan Friedman 6fae5e8efa
Add Deploy to Heroku button (#63)
* Add package.json and app.json

* Add yarn engine

* Remove extra build command

* Force install dev deps

* Add deploy button and update readme
2019-05-12 13:14:10 -04:00

17 lines
424 B
Bash
Executable File

echo "building client..."
rm -rf client
git clone https://github.com/darkwire/darkwire-client.git client
cd client
yarn --production=false
REACT_APP_API_HOST=$API_HOST \
REACT_APP_API_PROTOCOL=$API_PROTOCOL \
REACT_APP_API_PORT=$API_PORT \
yarn react-scripts build
cd ../
echo "building server..."
rm -rf server
git clone https://github.com/darkwire/darkwire-server.git server
cd server
yarn --production=false
yarn build