Commit f4a03158 authored by 郝聪敏's avatar 郝聪敏

test: 测试upload

parent 46065989
...@@ -25,12 +25,6 @@ export default (appInfo: EggAppConfig) => { ...@@ -25,12 +25,6 @@ export default (appInfo: EggAppConfig) => {
dir: path.join(appInfo.baseDir, 'logs') dir: path.join(appInfo.baseDir, 'logs')
}; };
// config.static = {
// prefix: '/public/',
// dir: path.join(appInfo.baseDir, 'public'),
// gzip: true
// };
config.keys = '123456'; config.keys = '123456';
config.middleware = [ config.middleware = [
......
...@@ -198,8 +198,8 @@ module.exports = { ...@@ -198,8 +198,8 @@ module.exports = {
} }
readFileList(path.resolve(__dirname, './public'), filesPath); readFileList(path.resolve(__dirname, './public'), filesPath);
const filesList = filesPath.map(filepath => { const filesList = filesPath.map(filepath => {
const publicPath = filepath.split('quantum-blocks-h5')[1];; const publicPath = filepath.split('public')[1];
const Key = `qb${publicPath}`; const Key = `qb/public/${publicPath}`;
console.log('filepath', filepath, Key); console.log('filepath', filepath, Key);
return { return {
Bucket: 'misc-1258270469', Bucket: 'misc-1258270469',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment