Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
656 commits
Select commit Hold shift + click to select a range
6d7b663
feat: add optional events for `store` event generation for profiling
samcamwilliams Jun 4, 2025
322ea29
feat: optionally disable all event generation
samcamwilliams Jun 4, 2025
1f9ddc6
impr: always return successfully, even if events disabled in `hyperbu…
samcamwilliams Jun 4, 2025
ba20c01
impr: add message r/w benchmark test
samcamwilliams Jun 4, 2025
35d6c22
feat: add support for disabling in-message scheduler cache
samcamwilliams Jun 4, 2025
b242f87
impr: derive max remote scheduler `GET` length from macro
samcamwilliams Jun 4, 2025
114a1a3
test: empty node_history
PeterFarber Jun 4, 2025
0e98e96
fix: store event increment
samcamwilliams Jun 4, 2025
4ab6fa0
fix: scheduler disabled in-memory assignment cache
samcamwilliams Jun 4, 2025
d8be730
chore: increase test timeout
samcamwilliams Jun 4, 2025
d829012
wip: improve cache write speed for commitments
samcamwilliams Jun 4, 2025
5cb8f2a
impr: normalize `lmdb` list response
samcamwilliams Jun 4, 2025
b4b4b27
impr: link `/commitments` to the `commitments` message in `hb_cache`
samcamwilliams Jun 4, 2025
0decc55
feat: set lmdb as default store
samcamwilliams Jun 4, 2025
3ddb979
Merge remote-tracking branch 'hyperbeam-main/rakis/impr/hb_store_lmdb…
samcamwilliams Jun 4, 2025
41392df
chore: use default in read_with_retries
samcamwilliams Jun 4, 2025
6f29257
Merge branch 'impr/commitment-read-speed' into dev/milestone-3-beta-1
samcamwilliams Jun 4, 2025
47792a7
fix: correctly calculate `signers` on messages with devices that use …
samcamwilliams Jun 4, 2025
747160d
chore: fix pretty printer display issue
samcamwilliams Jun 4, 2025
8bb7c4d
fix: merge conflict in `hb_ao:resolve/1` upon binary path
samcamwilliams Jun 4, 2025
e82b5a2
chore: pass opts in `~apply@1.0` tests
samcamwilliams Jun 4, 2025
82d0b3a
chore: improve `hb_http` logs
samcamwilliams Jun 4, 2025
f707984
fix: do not send `ans-104` inside nested httpsig bundle, for now.
samcamwilliams Jun 4, 2025
2733559
chore: smaller http logs
samcamwilliams Jun 4, 2025
378c649
fix: normalize local name and node process cache usage
samcamwilliams Jun 4, 2025
73a4f52
chore: set fallback store for gateways in default opts to `lmdb`
samcamwilliams Jun 4, 2025
3c22c84
Merge remote-tracking branch 'hyperbeam-main/NickJ202/dashboard-impr'…
samcamwilliams Jun 4, 2025
a52e7b6
impr: add homepage link to index header; return 404 on file read error
samcamwilliams Jun 4, 2025
056e5e8
impr: do not produce `charge` for free requests; add `topup` to non-c…
samcamwilliams Jun 4, 2025
6c807e7
fix: use `~p4/balance` rather than `~simple-pay/balance` for free check
samcamwilliams Jun 4, 2025
d958d5a
chore: remove debugging horizontal rule
samcamwilliams Jun 4, 2025
6bf12e5
feat: add Jaja's 404+500 pages
samcamwilliams Jun 4, 2025
adb6624
fix: ensure all loaded before invoking Lua VM
samcamwilliams Jun 4, 2025
7309220
fix: `~p4@1.0` hyper-token payment test
samcamwilliams Jun 4, 2025
c1fa04e
wip: fix `~router@1.0` tests
samcamwilliams Jun 4, 2025
9150675
chore: disable `hb_store_fs` in default store test suites
samcamwilliams Jun 4, 2025
d4e32f9
fix: `examples` test routes and result
samcamwilliams Jun 4, 2025
d80d01c
Fix: `invoke_aos_test` for the module `dev_lua.erl`
Lucifer0x17 Jun 5, 2025
72b0ffb
impr: implemented new lmdb api
twilson63 Jun 5, 2025
6d01af0
Merge remote-tracking branch 'hyperbeam-main/fix/test_dev_lua' into d…
samcamwilliams Jun 5, 2025
8581b90
fix: correctly derive owner value in `Eval`
samcamwilliams Jun 5, 2025
b0fcb66
chore: tidying
samcamwilliams Jun 5, 2025
61504b7
Merge branch 'dev/milestone-3-beta-1' into impr/commitment-read-speed
samcamwilliams Jun 5, 2025
f6acb21
Merge branch 'impr/commitment-read-speed' into dev/milestone-3-beta-1
samcamwilliams Jun 5, 2025
f1574ac
wip: ``Router@1.0` and `~relay@1.0` fixes
samcamwilliams Jun 5, 2025
20dbc64
feat: optionally disable resolution of HTTP calls to singular binarie…
samcamwilliams Jun 5, 2025
3d5da74
feat: list `server-id` short name next to debug prints, if available
samcamwilliams Jun 5, 2025
5f5897e
fix: `name` -> `prefix`
samcamwilliams Jun 5, 2025
ec81c4e
fix: encode nested commitment messages as TABM
samcamwilliams Jun 5, 2025
3ec95d8
impr: httpsig compatibility
samcamwilliams Jun 5, 2025
d585cca
fix: snapshot is now a link in the store
samcamwilliams Jun 5, 2025
3ce6736
fix: support Dictionary like stringification for signature base
samuelmanzanera Jun 5, 2025
79ae477
fix: add the missing alg in the signature base
samuelmanzanera Jun 5, 2025
f60012b
fix: disable derive component @status as not supported by few clients…
samuelmanzanera Jun 5, 2025
ad3f185
fix: Sig ID should always start by alpha characters
samuelmanzanera Jun 5, 2025
b0e4479
chore: include `elmdb` fork
samcamwilliams Jun 5, 2025
8bfb2e6
impr: move to `elmdb`
samcamwilliams Jun 5, 2025
70d203f
Merge branch 'impr/lmdb-transition' into dev/milestone-3-beta-1
samcamwilliams Jun 5, 2025
d52be87
Merge branch 'test/encrypt_payload' into dev/m3-merge-ep
PeterFarber Jun 6, 2025
c677b47
adding debug logs for meta and hook
PeterFarber Jun 6, 2025
62a0a5b
test: no bundle on post
PeterFarber Jun 6, 2025
49225cc
test: revert bundle changes and update rebar config for elmdb
PeterFarber Jun 6, 2025
aa6cccc
test: remove ensure all loaded from set_opts
PeterFarber Jun 6, 2025
cf8f0bc
chore: support map-size param of `elmdb` as `capacity`
samcamwilliams Jun 6, 2025
757edb4
chore: dev_scheduler timeouts
samcamwilliams Jun 6, 2025
52d7d13
fix: update branch to be in sync with milestone3
PeterFarber Jun 6, 2025
b12f5c9
chore: remove events
PeterFarber Jun 6, 2025
7f8eae7
Merge remote-tracking branch 'samuelmanzanera/fix/httpsig_compatibili…
samcamwilliams Jun 6, 2025
f9cead2
chore: disable cache recovery temporarily
samcamwilliams Jun 6, 2025
9de3cc2
chore: fix header print in `http` event group
samcamwilliams Jun 6, 2025
9301468
Merge branch 'dev/milestone-3-beta-1' into dev/m3-merge-ep
samcamwilliams Jun 6, 2025
d7b7335
chore: disable unnecessary test; add test timeout
samcamwilliams Jun 6, 2025
1373529
wip: `apply` call in `router@1.0`
samcamwilliams Jun 6, 2025
57ba0c2
fix: `accept-bundle` for messages that have a device in response
samcamwilliams Jun 6, 2025
4fc3bc4
fix: node history validation merge issue
samcamwilliams Jun 6, 2025
e69aaf0
chore: increase timeout
samcamwilliams Jun 6, 2025
ee2b62f
Merge branch 'dev/m3-merge-ep' into dev/milestone-3-beta-1
samcamwilliams Jun 6, 2025
93ed096
chore: fix hb_examples test timeout
samcamwilliams Jun 6, 2025
5a12f8d
test: greenzone
PeterFarber Jun 6, 2025
9e80e96
test: greenzone
PeterFarber Jun 6, 2025
21ac670
test: greenzone
PeterFarber Jun 6, 2025
537fc58
test: greenzone
PeterFarber Jun 6, 2025
4094c2f
test: greenzone
PeterFarber Jun 6, 2025
9778040
test: greenzone
PeterFarber Jun 6, 2025
185f512
test: greenzone
PeterFarber Jun 6, 2025
3ac0eec
test: greenzone
PeterFarber Jun 6, 2025
57e0039
test: greenzone
PeterFarber Jun 6, 2025
2fcfa21
test: greenzone
PeterFarber Jun 6, 2025
d08e13b
test: greenzone
PeterFarber Jun 6, 2025
e4ccbcf
test: greenzone
PeterFarber Jun 6, 2025
f8ce638
test: greenzone
PeterFarber Jun 6, 2025
029f294
test: greenzone
PeterFarber Jun 6, 2025
856cf0f
test: greenzone
PeterFarber Jun 6, 2025
63b89b5
test: greenzone
PeterFarber Jun 6, 2025
fae389e
test: greenzone
PeterFarber Jun 6, 2025
33b5b92
impr: flags + read abort changes to hb_store_lmdb
twilson63 Jun 6, 2025
b04d8ba
test: divergence
PeterFarber Jun 6, 2025
5dca72b
wip: normalize ans-104 tags in the appropriate codec
samcamwilliams Jun 6, 2025
72cef04
fix: fix verify error when ans104 message sets format
JamesPiechota Jun 6, 2025
cb3c9ba
fix: move ans104 normlaization steps into `~ans104@1.0`
samcamwilliams Jun 6, 2025
77b8578
Merge branch 'expr/key-normalization' into dev/milestone-3-beta-1
samcamwilliams Jun 6, 2025
82ea12e
Merge remote-tracking branch 'hyperbeam-main/rakis/impr/hb_store_flag…
samcamwilliams Jun 6, 2025
013df36
chore: re-enabled tx abort
samcamwilliams Jun 6, 2025
6c34a32
chore: disable out-of-scope test
samcamwilliams Jun 6, 2025
4c7e0a6
chore: update test params; disable out-of-scope test
samcamwilliams Jun 6, 2025
68b1747
chore: re-enable snapshot+link path check
samcamwilliams Jun 6, 2025
6db784f
chore: test timeouts
samcamwilliams Jun 6, 2025
e30ae47
chore: update base store flags
samcamwilliams Jun 6, 2025
302da62
chore: remove additionally nested httpsig message
samcamwilliams Jun 6, 2025
18cd2e7
impr: add support for `subject` key in msg2
samcamwilliams Jun 6, 2025
79e3184
upd: use `subject` in router register call
samcamwilliams Jun 6, 2025
7a3008b
impr: generalize `~router@1.0/register`; add `~greenzone@1.0/is-trusted`
samcamwilliams Jun 7, 2025
443bd71
impr: update `dynamic-router`
samcamwilliams Jun 7, 2025
687fd7b
chore: cleanup; restore snp generation in register
samcamwilliams Jun 7, 2025
d5e1340
chore: debug logging snp is admissable
PeterFarber Jun 7, 2025
66d9bff
impr: only considers signers in committed keys verification
PeterFarber Jun 7, 2025
c1fc094
impr: generalize router registration flow
samcamwilliams Jun 7, 2025
f1c15a1
fix: ensure that the process state message does not maintain the proc…
samcamwilliams Jun 7, 2025
3803242
impr: `~router@1.0/register` options
samcamwilliams Jun 7, 2025
d019926
fix: avoid `mimic_types` issue on reouter registration
samcamwilliams Jun 8, 2025
e86ad2f
chore: add router_registration_opts type
samcamwilliams Jun 8, 2025
bf408ad
feat: add error page formatted result
samcamwilliams Jun 8, 2025
a63513d
fix: return error on 500
jfrain99 Jun 8, 2025
604574e
fix: return error on 500
jfrain99 Jun 8, 2025
01a4ba4
chore: add variant and type to hb deploy_scripts
twilson63 Jun 8, 2025
45970a2
chore: update hb.erl:deploy_scripts with variant and module
twilson63 Jun 8, 2025
dece1b5
chore: add additional simple price price lookup location
samcamwilliams Jun 8, 2025
5471cbe
Merge remote-tracking branch 'hyperbeam-main/dev/milestone-3-beta-1' …
samcamwilliams Jun 8, 2025
6957443
Merge remote-tracking branch 'hyperbeam-main/rakis/chore/deploy_scrip…
samcamwilliams Jun 8, 2025
b519dcd
bump: version number
samcamwilliams Jun 8, 2025
2c8c628
Merge pull request #309 from permaweb/dev/milestone-3-beta-1
samcamwilliams Jun 8, 2025
c09c76e
feat: init load_revm nif
charmful0x Apr 21, 2025
846a912
chore: add gitignore
charmful0x Apr 21, 2025
5bea69b
fix: delete /target -- oops
charmful0x Apr 21, 2025
81b0d31
fix: deleted commited target
charmful0x Apr 21, 2025
1ebc337
feat: evm bytecode interpreter
charmful0x Apr 21, 2025
c55ab97
feat: EVM interpreter PoC
charmful0x Apr 21, 2025
b3fd396
chore: test erc20 deployment
charmful0x Apr 22, 2025
39f504c
fix: storage present value hex encoding
charmful0x Apr 22, 2025
688e452
chore: erc20 tranfer
charmful0x Apr 22, 2025
8794615
chore: remove unncessary util file
charmful0x Apr 22, 2025
ad3b039
chore: referenced genesis address
charmful0x Apr 22, 2025
6d2cb19
feat: custom EVM -- block gas limit & contract size
charmful0x Apr 22, 2025
89380b5
chore: add json files
charmful0x Apr 22, 2025
1db8da0
fix: evaluated state merging
charmful0x Apr 22, 2025
523d4a0
feat: uniswap contracts set deployment tests
charmful0x Apr 22, 2025
145c83d
chore: add wtLOAD test
charmful0x Apr 22, 2025
c10d879
feat: add zama devnet appchain
charmful0x Apr 23, 2025
c2ff795
feat: add zama computed state
charmful0x Apr 23, 2025
ab7c61c
feat: eip1967 slot management fix + zama appchain
charmful0x Apr 23, 2025
47706af
chore: fix EncryptedERC20.sol tests
charmful0x Apr 23, 2025
8103d19
chore: organize tests
charmful0x Apr 23, 2025
fd158cb
feat: dynamic state result cout
charmful0x Apr 23, 2025
9cf924f
feat: appchain state retrieval
charmful0x Apr 26, 2025
96f8a95
feat: erlang evm tests
charmful0x Apr 26, 2025
2cdba00
feat: evm device
charmful0x Apr 26, 2025
a1fa190
chore: comment code
charmful0x Apr 28, 2025
1300488
fix: cleanup git
charmful0x May 2, 2025
97aac2b
feat: erc20 deploy test
charmful0x May 2, 2025
68d7666
feat: full erc20 test suite
charmful0x May 3, 2025
e1622ec
feat: nif functions interfaces
charmful0x May 3, 2025
66b69d8
feat: add state utils
charmful0x May 3, 2025
adec16c
feat: state shallow merge
charmful0x May 4, 2025
0c50ef4
feat: get appchains state
charmful0x May 4, 2025
2dbefc6
feat: genesis & state initialization
charmful0x May 4, 2025
875ff30
chore: commit uncommited appchain dir
charmful0x May 4, 2025
2b00146
feat: mvp-ready eval_riscv_bytecode
charmful0x May 4, 2025
a2eb766
chore: gmt
charmful0x May 4, 2025
baa55f0
feat: dev_riscv_em device interface
charmful0x May 5, 2025
f763f44
feat: hb_http & hb_ao tests for evm device
charmful0x May 15, 2025
8661b30
feat: init kernel-em nif
charmful0x May 15, 2025
0ebfb32
feat: default kem fn
charmful0x May 15, 2025
92c7a68
feat: rustlify kem
charmful0x May 15, 2025
4f20f89
feat: add double kernel test
charmful0x May 15, 2025
aff2a41
feat: adapter info
charmful0x May 15, 2025
8664808
chore: fmt
charmful0x May 15, 2025
9f2328a
fix: input/output size ratio multiplier
charmful0x May 15, 2025
c0ba070
fix: proper crate release target
charmful0x May 16, 2025
3de3b84
fix: kernel input as Binary instead of Vec<u8>
charmful0x May 16, 2025
13ac285
feat: add kem@1.0 device interface
charmful0x May 16, 2025
12ddedc
chore: add kem lua test
charmful0x May 16, 2025
f1533e2
docs: add README & LICENSE
charmful0x May 17, 2025
deb0e9d
docs: add disclaimer
charmful0x May 17, 2025
af08521
feat: deployment files
charmful0x May 18, 2025
b89111a
fix: riscv_em_nif lib name
charmful0x May 18, 2025
3df11ef
chore: update user
charmful0x May 18, 2025
d29fc31
fix: deployment service
charmful0x May 18, 2025
85211ca
feat: deployment scripts
charmful0x May 18, 2025
05bf84d
feat: eval_tx method interface
charmful0x May 20, 2025
78c99a2
chore: add hb portal faucet address
charmful0x May 20, 2025
8c202c0
chore: update 9496 chain name
charmful0x May 22, 2025
c4fc7ce
docs: add evm device docs
charmful0x May 27, 2025
286b156
docs: fix typos
charmful0x May 27, 2025
7f46088
feat: updated wgsl kernel fn
charmful0x Jun 3, 2025
90b1d22
feat: add rustler execute_kernel_with_params
charmful0x Jun 3, 2025
4157bc0
feat: update kem device with uniform handler
charmful0x Jun 3, 2025
16b7886
fix: img pixelisation hotfix
charmful0x Jun 3, 2025
7a5f25f
fix: img pre-post-processing + workinggroups fix
charmful0x Jun 4, 2025
7bcbd71
chore: fmt
charmful0x Jun 4, 2025
b8728a8
chore: more cleanup
charmful0x Jun 4, 2025
efea437
feat: expose real time logs
charmful0x Jun 6, 2025
66d1fcb
chore: add glitch kernel src
charmful0x Jun 8, 2025
67b4787
feat: init load_revm nif
charmful0x Apr 21, 2025
9e458a0
feat: evm bytecode interpreter
charmful0x Apr 21, 2025
1a5c501
feat: EVM interpreter PoC
charmful0x Apr 21, 2025
0bf4584
chore: test erc20 deployment
charmful0x Apr 22, 2025
b466e8d
fix: storage present value hex encoding
charmful0x Apr 22, 2025
83b9ada
chore: erc20 tranfer
charmful0x Apr 22, 2025
a8029d2
chore: remove unncessary util file
charmful0x Apr 22, 2025
edd7df6
chore: referenced genesis address
charmful0x Apr 22, 2025
3425103
feat: custom EVM -- block gas limit & contract size
charmful0x Apr 22, 2025
9c7ecf9
chore: add json files
charmful0x Apr 22, 2025
11572d0
fix: evaluated state merging
charmful0x Apr 22, 2025
d077b94
feat: uniswap contracts set deployment tests
charmful0x Apr 22, 2025
bb26bcb
chore: add wtLOAD test
charmful0x Apr 22, 2025
bec7439
feat: add zama devnet appchain
charmful0x Apr 23, 2025
da0ec8c
feat: add zama computed state
charmful0x Apr 23, 2025
c173510
feat: eip1967 slot management fix + zama appchain
charmful0x Apr 23, 2025
2fcc0d8
chore: fix EncryptedERC20.sol tests
charmful0x Apr 23, 2025
dbe3991
chore: organize tests
charmful0x Apr 23, 2025
f7e46df
feat: dynamic state result cout
charmful0x Apr 23, 2025
a7bf628
feat: evm device
charmful0x Apr 26, 2025
046f39c
fix: cleanup git
charmful0x May 2, 2025
6f61e07
feat: erc20 deploy test
charmful0x May 2, 2025
5850c9a
feat: add state utils
charmful0x May 3, 2025
f70ad8b
feat: state shallow merge
charmful0x May 4, 2025
2db622e
feat: get appchains state
charmful0x May 4, 2025
4b580c8
feat: genesis & state initialization
charmful0x May 4, 2025
b5d4cc1
chore: gmt
charmful0x May 4, 2025
91c8fae
feat: dev_riscv_em device interface
charmful0x May 5, 2025
7ef78c8
feat: hb_http & hb_ao tests for evm device
charmful0x May 15, 2025
c7b72c9
feat: init kernel-em nif
charmful0x May 15, 2025
1d3c225
feat: default kem fn
charmful0x May 15, 2025
bd4ce76
feat: rustlify kem
charmful0x May 15, 2025
4fb6d3e
feat: add double kernel test
charmful0x May 15, 2025
27532e3
feat: adapter info
charmful0x May 15, 2025
e91eb79
chore: fmt
charmful0x May 15, 2025
b5e162f
fix: proper crate release target
charmful0x May 16, 2025
ab469a1
feat: add kem@1.0 device interface
charmful0x May 16, 2025
75d9a15
feat: deployment scripts
charmful0x May 18, 2025
b93517a
docs: add evm device docs
charmful0x May 27, 2025
1d092f4
feat: updated wgsl kernel fn
charmful0x Jun 3, 2025
b77be96
feat: add rustler execute_kernel_with_params
charmful0x Jun 3, 2025
39e2dcb
feat: update kem device with uniform handler
charmful0x Jun 3, 2025
b0df9b2
fix: img pixelisation hotfix
charmful0x Jun 3, 2025
749c122
chore: fmt
charmful0x Jun 4, 2025
b5526b8
feat: expose real time logs
charmful0x Jun 6, 2025
9df4807
chore: Rebase
the-db-architect Jun 11, 2025
8a81791
chore: Fix revm
the-db-architect Jun 11, 2025
98d4ce7
fix: disable riscv device
charmful0x Jun 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .githooks/_/install.sh

This file was deleted.

25 changes: 0 additions & 25 deletions .githooks/commit-msg

This file was deleted.

7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
config.*
.rebar3
_build
_checkouts
Expand Down Expand Up @@ -29,6 +30,8 @@ rebar3.crashdump

native/hb_beamr/*.o
native/hb_beamr/*.d
native/riscv_em_nif/target
test/test_lua_process_deployment.erl

priv/*
.DS_STORE
Expand All @@ -41,5 +44,5 @@ cu/
mkdocs-site/
mkdocs-site-id.txt
mkdocs-site-manifest.csv

!test/admissible-report-wallet.json
!test/admissible-report-wallet.json
deployment.sh
7 changes: 6 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"internalConsoleOptions": "openOnSessionStart",
"module": "hb_debugger",
"function": "start_and_break",
"args": "[${input:moduleName}, ${input:functionName}, [${input:funcArgs}]]"
"args": "[${input:moduleName}, ${input:functionName}, [${input:funcArgs}], <<\"${input:debuggerScope}\">>]"
},
{
"name": "Attach to a 'rebar3 debugger' node.",
Expand Down Expand Up @@ -65,6 +65,11 @@
"id": "funcArgs",
"type": "promptString",
"description": "(Optional) Pass arguments to the function:"
},
{
"id": "debuggerScope",
"type": "promptString",
"description": "(Optional) Additional modules/prefixes for debugger scope:"
}
]
}
23 changes: 23 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
set -e # Exit on any error

# Function to build and copy NIF
build_nif() {
local nif_name=$1
echo "Building ${nif_name}..."
cd native/${nif_name}
cargo build --release
mkdir -p ../../priv/crates/${nif_name}
cp target/release/lib${nif_name}.so ../../priv/crates/${nif_name}/${nif_name}.so
cd ../..
}

# Main script
echo "Starting deployment..."

# Build all NIFs
build_nif "load_revm_nif"
build_nif "kernel_em_nif"
# build_nif "riscv_em_nif"

echo "All NIFs built and copied successfully"
2 changes: 1 addition & 1 deletion config.flat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
port: 10000
port: 10001
42 changes: 42 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

# Exit on any error
set -e

echo "Building project..."
./build.sh

echo "Creating systemd service file..."
cat > /etc/systemd/system/hyperbeam.service << 'EOF'
[Unit]
Description=HyperBEAM Service
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/opt/load_hb
Environment=SHELL=/bin/bash
Environment=HOME=/root
Environment=LANG=en_US.UTF-8
Environment=PATH=/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
ExecStart=/usr/local/bin/rebar3 shell
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target
EOF

echo "Reloading systemd..."
systemctl daemon-reload

echo "Enabling and starting service..."
systemctl enable hyperbeam
systemctl restart hyperbeam

echo "Service status:"
systemctl status hyperbeam

echo "Deployment complete! Check logs with: journalctl -fu hyperbeam"
1 change: 1 addition & 0 deletions native/kernel_em_nif/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading