How to work at the Library

I was researching some Library Jobs online and I’ve been meaning to start working there any time soon. These are the steps to getting a job at the library if you are actually interested… After seeing…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Setting up serverless local development environment

This quick post walks through local development environment of aws-nodejs serverless service.

I will assume you have already create a serverless project called my-service now.

3. Run local service with serverless offline start

To integrate your serverless service to pm2, just create a config file(ecosystem.config.js) in your project root directory. With the content like this:

watch: true means pm2 will restart your service when file changed, this is useful for local develop.

This config file tells pm2 to run npm run offline to start your service, so we need to define a offline command in package.json ’s scripts section.

After the above steps, you should already have a local development environment for nodejs serverless service. Hope you like it!

Add a comment

Related posts:

How to build efficient checklists for your marketing strategies

Checklists can be some of the most useful and rewarding kinds of content your marketing team can produce to help and engaje your target audience. When well planned and executed, they have great…

Bad Poem

The sun was shining like the piece of gum on the bottom of my shoe.. “Bad Poem” is published by Olivia Thomas.

Studying the Bible

Refrigerator doors everywhere are filled with verses plucked from the Bible. And though seeing them there each day may encourage us, it’s not guaranteed to increase our understanding. The Bible is…