Skip to content

Commit

Permalink
fix(electron): make sure repo is migrated when starting ipfs
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanabaroa committed Feb 2, 2024
1 parent 75c785d commit e3804e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions electron/start-ipfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ const startIpfs = async () => {
await spawnAsync(ipfsPath, ['init'], { env, hideWindows: true });
} catch (e) {}

// make sure repo is migrated
try {
await spawnAsync(ipfsPath, ['repo', 'migrate'], { env, hideWindows: true });
} catch (e) {}

// dont use 8080 port because it's too common
await spawnAsync(ipfsPath, ['config', '--json', 'Addresses.Gateway', 'null'], {
env,
Expand Down

0 comments on commit e3804e3

Please sign in to comment.