fix(tapbundle_serverside): allocate a free port when starting SmartStorage
This commit is contained in:
@@ -93,8 +93,9 @@ export class TapNodeTools {
|
||||
*/
|
||||
public async createSmartStorage() {
|
||||
const smartstorageMod = await import('@push.rocks/smartstorage');
|
||||
const port = await this.findFreePort({ startPort: 3003 });
|
||||
const smartstorageInstance = await smartstorageMod.SmartStorage.createAndStart({
|
||||
server: { port: 3003 },
|
||||
server: { port },
|
||||
storage: { cleanSlate: true },
|
||||
});
|
||||
return smartstorageInstance;
|
||||
|
||||
Reference in New Issue
Block a user