Skip to content

Commit

Permalink
feat: Support multiple local servers on ports 8000-8500
Browse files Browse the repository at this point in the history
The new python "simwrapper" library can open multiple local servers.
Run "pip install simwrapper" and then you can:

- simwrapper serve, to do the usual one-server
- simwrapper open vsp|asim, to open a browser tab for the current folder
  • Loading branch information
billyc committed Dec 1, 2021
1 parent b5f7b97 commit 8ca422f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/fileSystemConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,16 @@ const fileSystems: FileSystemConfig[] = [
// },
]

for (let port = 8000; port < 8500; port++) {
fileSystems.push({
name: 'Localhost ' + port,
slug: `${port}`,
description: 'Localhost ' + port,
description_de: 'Localhost ' + port,
baseURL: 'http://localhost:' + port,
thumbnail: '/simwrapper/images/thumb-localfiles.jpg',
hidden: true,
})
}

export default fileSystems

0 comments on commit 8ca422f

Please sign in to comment.