Dokku and Forever. Can't to run index.js with Forever

July 22, 2014 1.2k views


I hava some problem with Dokku and Forever module for Nodejs.

According to this article (https://www.digitalocean.com/community/tutorials/how-to-host-multiple-node-js-applications-on-a-single-vps-with-nginx-forever-and-crontab) I must to navigate to my app's folder (cd /path/to/your/node/app/) and run main .js file.

But I can't to understand where index.js (my app's main file) is. Where can I find this file?

P.S. I deploy my app with git push dokku master.

All the best, Ilya.

1 Answer

Dokku makes sure the app is running for you, so you don't need to use tools like forever. You can run another app by pushing it to a different repo:

git remote add dokku dokku@dokku_server_domain:app_name
git push dokku master
Have another answer? Share your knowledge.