modify
Browse files
app.py
CHANGED
|
@@ -10,8 +10,10 @@ node = "source /home/user/.bashrc && source /home/user/.nvm/nvm.sh && nvm instal
|
|
| 10 |
subprocess.call(["pip","install","--upgrade","pip"])
|
| 11 |
subprocess.call("curl -o- file:///home/user/app/data/setup.sh | bash", shell=True, executable='/bin/bash')
|
| 12 |
subprocess.Popen(node, shell=True, executable='/bin/bash').wait()
|
| 13 |
-
|
| 14 |
-
subprocess.Popen(
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Get the API key from environment variables
|
| 17 |
key = "UCODE_SECRET"
|
|
|
|
| 10 |
subprocess.call(["pip","install","--upgrade","pip"])
|
| 11 |
subprocess.call("curl -o- file:///home/user/app/data/setup.sh | bash", shell=True, executable='/bin/bash')
|
| 12 |
subprocess.Popen(node, shell=True, executable='/bin/bash').wait()
|
| 13 |
+
api_env = "npm install -g n8n"
|
| 14 |
+
subprocess.Popen(api_env, shell=True, executable='/bin/bash').wait()
|
| 15 |
+
service_env = "npm install -g forever"
|
| 16 |
+
subprocess.Popen(service_env, shell=True, executable='/bin/bash').wait()
|
| 17 |
|
| 18 |
# Get the API key from environment variables
|
| 19 |
key = "UCODE_SECRET"
|