Skip to content

Commit

Permalink
fix: install make on start
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-pousette committed Aug 12, 2024
1 parent 75630ee commit 8c33ab6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/clients/peerbit-server/node/src/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,13 @@ export const createRecord = async (options: {

const setupUserData = (email: string, grantAccess: PeerId[] = []) => {
const peerIdStrings = grantAccess.map((x) => x.toString());

// better-sqlite3 force use to install build-essentials for `make` command, TOOD dont bundle better-sqlite3 by default?
return `#!/bin/bash
cd /home/ubuntu
curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
npm install -g @peerbit/server
sudo peerbit domain test --email ${email}
peerbit start ${peerIdStrings.map((key) => `--ga ${key}`)} > log.txt 2>&1 &
Expand Down

0 comments on commit 8c33ab6

Please sign in to comment.