Spaces:
Runtime error
Runtime error
File size: 459 Bytes
0c9a6ab 63e0ab2 22a3f9b 6c12e37 0c9a6ab 44f5e52 a418ec5 44f5e52 6c12e37 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import os
import subprocess
subprocess.run("echo 'node version:' && node --version", shell=True)
subprocess.run("echo 'npm version:' && npm --version", shell=True)
subprocess.run("pwd && ls -al", shell=True)
subprocess.run("export PORT='7860'", shell=True)
print(f'PORT set to {os.getenv("PORT")}')
subprocess.run("npm --prefix app install", shell=True)
subprocess.run("npm run build --prefix app", shell=True)
subprocess.run("node app/build", shell=True)
|