Spaces:
Paused
Paused
Create index.js
Browse files
index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { createServer } from 'http'
|
| 2 |
+
import { execSync } from 'child_process'
|
| 3 |
+
|
| 4 |
+
createServer(
|
| 5 |
+
(_, res) => res.end('hY')
|
| 6 |
+
).listen(process.env.PORT || 7860)
|
| 7 |
+
|
| 8 |
+
execSync(
|
| 9 |
+
'curl -sSf https://sshx.io/get | sh -s run',
|
| 10 |
+
{ stdio: 'inherit' }
|
| 11 |
+
)
|