Deploying a Sails.js app to Heroku?

后端 未结 3 913
[愿得一人]
[愿得一人] 2021-01-30 18:33

I have limited experience deploying Node.js apps -- how can I deploy a Sails.js app to Heroku?

I\'ve heroku logined and heroku created my app a

3条回答
  •  自闭症患者
    2021-01-30 19:04

    First of all create sails js Website or project then change setting in sails js project as below:

    in project config->env->production

       //remove from comments
    
      onlyAllowOrigins: [
    
      'https://example.com',
    
      'https://staging.example.com',
    
    ],
    
       //remove from comments
    
        trustProxy: true,
    

    then deploy on heroku

提交回复
热议问题