# Deploy - specify which serverless.yml file to deploy

**URL:** <https://forum.serverless.com/t/deploy-specify-which-serverless-yml-file-to-deploy/4917>\
**Category:** Serverless Framework\
**Created:** [June 29, 2018, 6:30pm UTC](https://forum.serverless.com/t/deploy-specify-which-serverless-yml-file-to-deploy/4917 "2018-06-29T18:30:00Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![ktwbc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/ktwbc/32/764_2.png) [@ktwbc](https://forum.serverless.com/u/ktwbc)\
**Post date:** [August 7, 2019, 10:09pm UTC](https://forum.serverless.com/t/deploy-specify-which-serverless-yml-file-to-deploy/4917/11 "2019-08-07T22:09:27Z")

</div>

This is an old thread but ran across it and wanted to post for anyone finding it still. Simplest was to combine the copying mentioned above in the package.json. In the root of my folder I have two serverless files, serverless-public.yml and serverless-admin.yml and then the two scripts just pull one and copy it:

```
   "start-dev-public": "rm -f serverless.yml && cp serverless-public.yml serverless.yml && sls offline start --stage=dev --port=4000",
   "start-dev-admin": "rm -f serverless.yml && cp serverless-admin.yml serverless.yml && sls offline start --stage=dev --port=4999",
```

---

_[View the full topic](https://forum.serverless.com/t/deploy-specify-which-serverless-yml-file-to-deploy/4917)._
