Deploy Nodejs on Heroku fails serving static files located in subfolders

前端 未结 6 1732
一整个雨季
一整个雨季 2020-11-30 12:30

I\'m deploying a NodeJs application using Heroku. Everything works fine except a little issue serving static files.

I have the following configuration



        
6条回答
  •  忘掉有多难
    2020-11-30 13:02

    Finally I found the solution.

    I solved that just adding the npm version in my package.json.

    {
        "name": "bla",
        "version": "0.0.1",
        "dependencies": {
            "express": "3.2.6"
        },
        "engines": {
            "node": "0.10.11",
            "npm": "1.2.25"
        } 
    }
    

提交回复
热议问题