Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts 打包到 dist 目录下如何部署,node_modules 怎么处理。带带弟弟🥺 #81

Open
0jinxing opened this issue Dec 23, 2021 · 0 comments

Comments

@0jinxing
Copy link

0jinxing commented Dec 23, 2021

项目结构

.
├── dist
│   ├── index.js
│   ├── mail.js
│   ├── notion.js
│   └── parser.js
├── node_modules
├── package.json
├── serverless.yml
├── src
│   ├── index.ts
│   ├── mail.ts
│   ├── notion.ts
│   └── parser.ts
├── tsconfig.json
└── yarn.lock

serverless.yaml

name: my-bills
component: scf

inputs:
  src: ./
  handler: index.main_handler
  region: ap-guangzhou
  runtime: Nodejs10.15
  memorySize: 128
  timeout: 3
  type: event
  events:
    - timer:
        name: timer
        parameters:
          cronExpression: "0 0 6 * *"
          enable: true

疑问🤔️

  1. 需要执行函数 在 dist/index.main_handler。配置里面 handler 需要怎么样才能加上文件夹?
  2. node_modules 需要上传吗。需要的话 怎样配置比较合适?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant