npm packages:
- express
- multer(to upload files. official package from express I think)
- Need to install ffmpeg on windows or your local machine also need to set ffmpeg to your command like runnine
ffmpeg
from cmd. te set on terminal go toEnvironment Variables
. SelectPath
then click edit and add the folder location offfmpeg/bin
. For now, I edited my userPath
variables.
Need to add buildpacks for Nodejs and ffmpeg after creating project go to Setting>Add buildpack
make sure you add the ffmpeg buildpack first otherwise it will give your error. ffpmeg needs to be setup before nodejs just like reoping the terminal on your local machine for ffmpeg cmd.
- first add https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git to the buildpack list
- Then select nodejs from the list
- So, there is two buildpack now.
Now, add the repo in heroku and automatic deploy to work with github push changes. Then, select deploy branch