I wanted change the default download folder. But the downloading is so messed up, I can’t find the download folder in root path of Linux /var/tmp nor inside the meteor app.
How do i use the absolute folder of Linux system in Meteor (mup) ,Like : /var/tmp/
If you’re using MUP, the app is run in a container, which has it’s own temporary filesystem.
If you want the files to survive a container restart, you will want to map a directory from the host into the container using the volumes option in mup.js:
// TODO: change app name and path
name: 'test',
path: '../',
volumes: {
// passed as '-v /host/path:/container/path' to the docker run command
'/files': '/files',
'/files/tmp_download': '/files/tmp_download'
},
servers: {
// one: {},
two: {
// env: {
// PORT: 3000
// }
},
}`
But the files won’t get downloaded correctly.
Is there a latest way/link to deploy the code directly without docker ? --> I only need this one run on the server side without brower
Or how to test the new code faster without waiting for a long time for building bundles to deploy in Mup or Docker.
Also, you can copy the source and run meteor in dev mode as well, for debugging.
VSCode’s remote SSH explorer is very good for editing live on the server with rebuilds
If it was using path.join then it won’t work. Because it need to be an absolute path. And i’m using this for the file dir + '/' + filename
The downloading log
Hmm, it looks like webtorrent also adds the filename to the path as well (that’s whats happening in the highlighted path.join, the absolute path joined to filename), so maybe that’s the issue?