Skip to content

Commit e29535f

Browse files
authored
hosting setup (#86)
1 parent 16542b4 commit e29535f

File tree

8 files changed

+623
-2
lines changed

8 files changed

+623
-2
lines changed

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: node server.js

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,19 @@ To publish the React Component library, do the same thing as the SDK exepct use
190190

191191
#### Demo App and Management Console
192192

193-
TBD
193+
If you need to deploy the demo app to prod from scratch, just create a new heroku project and add these buildpacks from the Heroku CLI (or directly in your Heroku dashboard)
194+
195+
```sh
196+
$ heroku buildpacks:clear
197+
$ heroku buildpacks:add heroku/python
198+
$ heroku buildpacks:add heroku/nodejs
199+
```
200+
201+
Then just run:
202+
203+
```sh
204+
$ git push heroku main
205+
```
194206

195207
## License
196208

build-script.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
3+
# Stop script on any error
4+
set -e
5+
6+
# Print each command before executing it
7+
set -x
8+
9+
echo "Starting build process..."
10+
11+
echo "Installing npm dependencies..."
12+
npm install
13+
14+
15+
# Install Poetry using pip
16+
echo "Installing Poetry..."
17+
pip install poetry
18+
19+
echo "Exporting Poetry dependencies to requirements.txt..."
20+
poetry export -f requirements.txt --output requirements.txt --without-hashes
21+
22+
echo "Installing Python dependencies from requirements.txt..."
23+
pip install -r requirements.txt
24+
25+
echo "Installing Python dependencies and eth-ape..."
26+
pip install eth-ape
27+
ape plugins install . --upgrade
28+
ape compile
29+
30+
31+
echo "Building sdk/js workspace..."
32+
npm run build --workspace=sdk/js
33+
34+
echo "Building ui/lib workspace..."
35+
npm run build --workspace=ui/lib
36+
37+
echo "Building ui/app workspace..."
38+
npm run build --workspace=ui/app
39+
40+
41+
echo "Build process for ui/app completed. Listing contents of ui/app/dist:"
42+
ls ui/app/dist
43+
44+
echo "Build script completed."

0 commit comments

Comments
 (0)