# Deploying a serverless application

**URL:** <https://forum.serverless.com/t/deploying-a-serverless-application/462>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [October 5, 2016, 4:34pm UTC](https://forum.serverless.com/t/deploying-a-serverless-application/462 "2016-10-05T16:34:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amatmakur](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@amatmakur](https://forum.serverless.com/u/amatmakur)\
**Post date:** [October 5, 2016, 4:34pm UTC](https://forum.serverless.com/t/deploying-a-serverless-application/462/1 "2016-10-05T16:34:04Z")

</div>

Hi,  
New to serverless, writing my first program and will probably sound dumb 🙁 with the question.

Ran the hello world and realized that “serverless deploy” looks for serverless.yml. I downloaded a sample application which had a s-function.json, s-resources-cf.json and other files but no serverless.yml. While trying to deploy resources, i get an error which says “command `resources` not found”. What am i missing? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ianserlin](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/ianserlin/32/34_2.png) [@ianserlin](https://forum.serverless.com/u/ianserlin)\
**Post date:** [October 5, 2016, 4:43pm UTC](https://forum.serverless.com/t/deploying-a-serverless-application/462/2 "2016-10-05T16:43:09Z")

</div>

Hey @amatmakur,

The sample you downloaded was for a Serverless v0.5x project and you are probably using serverless v1.0.0-rc2.

What I would do is create a new folder, go into that folder and then create a new serverless service using `serverless create --template aws-nodejs --name my-special-service` (assuming you are creating a nodejs service, see [https://github.com/serverless/serverless/blob/master/docs/01-guide/02-creating-services.md](https://github.com/serverless/serverless/blob/master/docs/01-guide/02-creating-services.md)) and then move in just the javascript code from the sample project that you need, and not the surrounding old-style serverless project configuration.

Cheers!

- Ian

---

<div class="post-metadata">

**Author:** ![rowanu](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/rowanu/32/75_2.png) [@rowanu](https://forum.serverless.com/u/rowanu)\
**Post date:** [October 5, 2016, 10:44pm UTC](https://forum.serverless.com/t/deploying-a-serverless-application/462/3 "2016-10-05T22:44:25Z")

</div>

Just to add to @ianserlin’s already good answer: v0.x and v1.x Serverless projects **are completely different**. The project was re-written, so you can basically assume that anything for v0.x is **irrelevant** for you v1.x service.

---

<div class="post-metadata">

**Author:** ![amatmakur](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@amatmakur](https://forum.serverless.com/u/amatmakur)\
**Post date:** [October 6, 2016, 4:55pm UTC](https://forum.serverless.com/t/deploying-a-serverless-application/462/4 "2016-10-06T16:55:06Z")

</div>

Thank you @ianserlin and @rowanu. I now run into a different problem. My js file has the const request = require(‘request’); and i get an error saying “Cannot find module ‘request’”. I am running v1.0.1-rc.2. Should i explicitly define the dependency on npm\_modules somewhere in my configuration? If not, how could i fix this issue?

---

<div class="post-metadata">

**Author:** ![amatmakur](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@amatmakur](https://forum.serverless.com/u/amatmakur)\
**Post date:** [October 6, 2016, 5:25pm UTC](https://forum.serverless.com/t/deploying-a-serverless-application/462/5 "2016-10-06T17:25:18Z")

</div>

Hi, an upgrade of the serverless solved this problem 🙂
