MeteorUp log error: no such file or directory
MeteorUp log error: no such file or directory
在 Windows 10 上本地创建的 Meteor 应用程序,使用 Meteor Up to deploy to a Ubuntu VPS. The app is running and accessable from the browser 185.148.129.235。
服务器代码读取位于“/var/www/html/Audio”目录中的文件名称,Apache 将其内容提供给客户端浏览器,但请注意以下错误。
这里还有 mup.js 文件,任何帮助都非常适用,可以修复此错误并读取所述位置中的文件名。
module.exports = {
servers: {
one: {
host: '185.148.129.235',
username: 'root',
password: '.....',
opts: {
port: 7822
}
}
},
app: {
name: 'audio',
path: '../',
servers: {
one: {},
},
buildOptions: {
serverOnly: true,
},
env: {
ROOT_URL: 'http://185.148.129.235.static.a2webhosting.com',
MONGO_URL: 'mongodb://mongodb/meteor',
MONGO_OPLOG_URL: 'mongodb://mongodb/local',
},
docker: {
image: 'abernix/meteord:node-12-base',
},
enableUploadProgressBar: true
},
mongo: {
version: '3.4.1',
servers: {
one: {}
}
},
};
PS C:\PATH-TO-APP\.deploy> mup logs -f --tail=50
[185.148.129.235]=> Starting meteor app on port:3000
[185.148.129.235]Error: ENOENT: no such file or directory, scandir '/var/www/html/Audio'
[185.148.129.235] at Object.readdirSync (fs.js:955:3)
[185.148.129.235] at objTitlesBuild (server/main.js:22:15)
[185.148.129.235] at server/main.js:9:3
[185.148.129.235] at Function.time (/built_app/programs/server/profile.js:273:30)
[185.148.129.235] at /built_app/programs/server/boot.js:415:15
[185.148.129.235] at /built_app/programs/server/boot.js:465:7
[185.148.129.235] at Function.run (/built_app/programs/server/profile.js:280:14)
[185.148.129.235] at /built_app/programs/server/boot.js:463:13 {
[185.148.129.235] errno: -2,
[185.148.129.235] syscall: 'scandir',
[185.148.129.235] code: 'ENOENT',
[185.148.129.235] path: '/var/www/html/Audio'
[185.148.129.235]}
阅读 Docker volumes 后,mup.js 的以下补充解决了问题
volumes: {
'/var/www/html/Audio/':'/Audio',
},
在 Windows 10 上本地创建的 Meteor 应用程序,使用 Meteor Up to deploy to a Ubuntu VPS. The app is running and accessable from the browser 185.148.129.235。
服务器代码读取位于“/var/www/html/Audio”目录中的文件名称,Apache 将其内容提供给客户端浏览器,但请注意以下错误。
这里还有 mup.js 文件,任何帮助都非常适用,可以修复此错误并读取所述位置中的文件名。
module.exports = {
servers: {
one: {
host: '185.148.129.235',
username: 'root',
password: '.....',
opts: {
port: 7822
}
}
},
app: {
name: 'audio',
path: '../',
servers: {
one: {},
},
buildOptions: {
serverOnly: true,
},
env: {
ROOT_URL: 'http://185.148.129.235.static.a2webhosting.com',
MONGO_URL: 'mongodb://mongodb/meteor',
MONGO_OPLOG_URL: 'mongodb://mongodb/local',
},
docker: {
image: 'abernix/meteord:node-12-base',
},
enableUploadProgressBar: true
},
mongo: {
version: '3.4.1',
servers: {
one: {}
}
},
};
PS C:\PATH-TO-APP\.deploy> mup logs -f --tail=50
[185.148.129.235]=> Starting meteor app on port:3000
[185.148.129.235]Error: ENOENT: no such file or directory, scandir '/var/www/html/Audio'
[185.148.129.235] at Object.readdirSync (fs.js:955:3)
[185.148.129.235] at objTitlesBuild (server/main.js:22:15)
[185.148.129.235] at server/main.js:9:3
[185.148.129.235] at Function.time (/built_app/programs/server/profile.js:273:30)
[185.148.129.235] at /built_app/programs/server/boot.js:415:15
[185.148.129.235] at /built_app/programs/server/boot.js:465:7
[185.148.129.235] at Function.run (/built_app/programs/server/profile.js:280:14)
[185.148.129.235] at /built_app/programs/server/boot.js:463:13 {
[185.148.129.235] errno: -2,
[185.148.129.235] syscall: 'scandir',
[185.148.129.235] code: 'ENOENT',
[185.148.129.235] path: '/var/www/html/Audio'
[185.148.129.235]}
阅读 Docker volumes 后,mup.js 的以下补充解决了问题
volumes: {
'/var/www/html/Audio/':'/Audio',
},