Pingvin Share - Change data directory #2844
-
Hi, I have spun up a Pingvin Share LXC via the script, and I cant find anything in the Pingvin docs about how to change the data directory other than an environment variable that should be set to the desired directory at the time of installation. Does anyone know how to change the data directory after the fact? Could it be as simple as setting the Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Finally solved with a PM2 config file. ecosystem.config.jsconst dataDir = "/mnt/media/pingvin"
module.exports = {
apps : [{
name: "pingvin-share-backend",
script: "npm",
args: "run prod",
cwd: "/opt/pingvin-share/backend",
env: {
DATA_DIRECTORY: dataDir,
},
}, {
name: "pingvin-share-frontend",
script: "npm",
args: "run start",
cwd: "/opt/pingvin-share/frontend",
env: {
DATA_DIRECTORY: dataDir,
},
}]
} This approach could also be used to set any of the other variables like Don't know enough about bash to make a proper pull request but I think you would remove the two Just a side note, I thought you needed a |
Beta Was this translation helpful? Give feedback.
Finally solved with a PM2 config file.
ecosystem.config.js
This approach could also be used to set any of the other variables like
PORT
orDATABASE_URL
.Don't know enough about bash to make a proper pull request but I think you would remove the two
$STD pm2 start ...
lines (44 & 48 …