forked from jathak/dominion
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy
More file actions
executable file
·31 lines (24 loc) · 785 Bytes
/
Copy pathdeploy
File metadata and controls
executable file
·31 lines (24 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
rm -rf /tmp/dominion_deploy || true
cd dominion_web
rm -r build
pub get
pub run webdev build
cd ..
mkdir -p /tmp/dominion_deploy/dominion_web
cp -r dominion_web/build /tmp/dominion_deploy/dominion_web/build
rm -r /tmp/dominion_deploy/dominion_web/build/packages
mkdir -p /tmp/dominion_deploy/dominion_server/bin/
cd dominion_server
pub get
dart2native bin/server.dart -o /tmp/dominion_deploy/dominion_server/bin/server
cd /tmp/dominion_deploy
echo 'web: dominion_server/bin/server $PORT /app/storage/data.json' > Procfile
mkdir .heroku
touch .heroku/run.sh
echo 'export BUILDPACK_URL=https://github.com/niteoweb/heroku-buildpack-shell' > .env
git init
git add .
git commit -m "deploy"
git remote add dokku dokku@asteria.jenthakar.com:dominion
git push -f dokku master