@serverless-devs/sandbox

0.0.6-alpha.7 • Public • Published

基本用法

sandbox 接收参数说明

  • p or port 来指定端口
  • projectName 来指定启动服务的项目名称(默认取第一个)

你可以直接在 package.json 添加如下配置

{
  "scripts": {
    "server": "sandbox"
  }
}

然后 执行 npm run server 就可以访问 http://localhost:3000

当然,你也可以指定端口进行访问

{
  "scripts": {
    "server": "sandbox -p 7000"
    // or
    // "server": "sandbox --port 7000"
  }
}

然后 执行 npm run server 就可以访问 http://localhost:7000

具体可参考应用案例 dk-tablestore

Readme

Keywords

none

Package Sidebar

Install

npm i @serverless-devs/sandbox

Weekly Downloads

1

Version

0.0.6-alpha.7

License

ISC

Unpacked Size

3.98 kB

Total Files

6

Last publish

Collaborators

  • serverlessfans
  • heimanba
  • xsahxl