Procfile is a mechanism for declaring what commands are run by your application’s dynos on the Heroku platform.
From Process Types and the Procfile, which is a good introduction, but basically you use the Procfile to tell Heroku how to run various pieces of your app. The part to the left of the colon on each line is the process type; the part on the right is the command to run to start that process.
Process types can be anything, although web
is special, as Heroku will route HTTP requests to processes started with the web
name. Other processes, such as background workers, can be named anything, and you can use the Heroku toolbelt to start or stop those processes by referring to its name.
So, in short, worker
is not necessary, unless you want to run some other process in the background by controlling process with the heroku ps
command.
Related Posts:
- What is Procfile? and Web and Worker
- npm ERR cb() never called
- mongoError: Topology was destroyed
- nodemon – app crashed – waiting for file changes before starting
- “Topology was destroyed” when using MongoDB with native driver and Express.js
- Error: getaddrinfo ENOTFOUND in nodejs for get call
- Heroku + node.js error (Web process failed to bind to $PORT within 60 seconds of launch)
- Mongoose: findOneAndUpdate doesn’t return updated document
- How to Create and Use Enum in Mongoose
- First Heroku deploy failed `error code=H10`
- First Heroku deploy failed `error code=H10`
- (node:63208) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead
- Push items into mongo array via mongoose
- Difference between MongoDB and Mongoose
- E11000 duplicate key error index in mongodb mongoose
- Mongoose: CastError: Cast to ObjectId failed for value “[object Object]” at path “_id”
- Unable to connect to mongolab, Getting MongoError: auth failed
- heroku is giving me Method not allowed
- db.collection is not a function when using MongoClient v3.0
- How to update a array value in Mongoose
- In Mongoose, how do I sort by date? (node.js)
- Properly close mongoose’s connection once you’re done
- How to sort a collection by date in MongoDB?
- Mongodb: failed to connect to server on first connect
- Heroku “State changed from starting to down Stopping all processes with SIGTERM”
- How to drop a database with Mongoose?
- Cannot access mongodb through browser – It looks like you are trying to access MongoDB over HTTP on the native driver port
- MongoDB data/db not found
- How do I update Node.js?
- How to fix ‘Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.’
- Can not find module “@angular-devkit/build-angular”
- Node.exe Stuck at 100% CPU
- sudo: npm: command not found
- How to resolve Nodejs: Error: ENOENT: no such file or directory
- bash: npm: command not found?
- Node.js getaddrinfo ENOTFOUND
- How do I debug error ECONNRESET in Node.js?
- Does anyone knows what “rimraf” means?
- How can I completely uninstall nodejs, npm and node in Ubuntu [closed]
- Please run `npm cache clean`
- node.js string.replace doesn’t work?
- What is the difference between npm install and npm run build?
- What is “export default” in JavaScript?
- What is the difference between __dirname and ./ in node.js?
- node.js, Error: Cannot find module ‘express’
- Heroku: “No default language could be detected for this app” error thrown for node app
- NPM Start not starting local server
- What is the –save option for npm install?
- Node Version Manager install – nvm command not found
- nodemon not working: -bash: nodemon: command not found
- Failed to load resource: net::ERR_CONNECTION_REFUSED : Nodejs
- npm install not working in windows
- SyntaxError: Unexpected token import – Express
- Error: No default engine was specified and no extension was provided
- Significance of port 3000 in Express apps
- ExpressJS – throw er Unhandled error event
- Discord.js sending a message to a specific channel
- The difference between “require(x)” and “import x”
- What Are “npm run dev” and “npm run prod”
- Find the version of an installed npm package
- “npm config set registry https://registry.npmjs.org/” is not working in windows bat file
- How to get GET (query string) variables in Express.js on Node.js?
- How do I uninstall a package installed using npm link?
- Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
- In express how do I redirect a user to an external url?
- ExpressJS – throw er Unhandled error event
- ENOENT, no such file or directory
- Error “Cannot find module ‘npmlog'” after “npm update -g”
- What is the difference between –save and –save-dev?
- ExpressJS : res.redirect() not working as expected?
- error: This is probably not a problem with npm. There is likely additional logging output above
- npm – “Can’t find Python executable “python”, you can set the PYTHON env variable.”
- Node.js + Nginx – What now?
- What could cause “connect ETIMEDOUT” error when the URL is working in browser?
- node.js error message events.js:183 throw er; // Unhandled ‘error’ event
- “invalid ELF header” when using the nodejs “ref” module on AWS Lambda
- Entrypoint undefined = index.html using HtmlWebpackPlugin
- `node-pre-gyp install –fallback-to-build` failed during MeanJS installation on OSX
- http-server command not found
- Route.get() requires callback functions but got a “object Undefined”
- npm install errors with Error: ENOENT, chmod
- npm WARN deprecated [email protected]: Use uuid module instead
- npm WARN package.json: No repository field
- Advice on loopback.js vs express js
- nodejs – first argument must be a string or Buffer – when using response.write with http.request
- How do you uninstall all dependencies listed in package.json (NPM)?
- How can I use an ES6 import in Node.js? [duplicate]
- How to stop Node.js server?
- Loop through JSON in EJS
- NPM warn message about deprecated package
- How npm start runs a server on port 8000
- Webpack – webpack-dev-server: command not found
- npm install hangs
- bodyParser is deprecated express 4
- ReferenceError: describe is not defined NodeJs
- Nodejs – Redirect url
- ode.js vs. meteor.js what’s the difference?
- Can pm2 run an ‘npm start’ script
- AWS s3 api error: specified bucket does not exist
- nvm is not compatible with the npm config “prefix” option: