Deploy WebSharper.Suave web application to Heroku

岁酱吖の 提交于 2019-12-10 21:09:42

问题


I can not understand what I need to change to make it. I created a demo project from this blogpost with app.json and Procfile:

web: fsharpi-heroku WebsahrperSuaveHerokuExample1.sln

Next, I tried to deploy it to Heroku in accordance with these recommendations:

heroku create websahrper-with-suave-example --buildpack https://github.com/SuaveIO/mono-script-buildpack.git
heroku git:remote -a websahrper-with-suave-example
git push heroku master

There was an error in Heroku when building the project:

...
Import process completed.
-----> packages.config found, installing dependencies with nuget
Cannot open assembly 'install': No such file or directory.
!     Push rejected, failed to compile SuaveFramework app

Could you suggest me a solution if there is one?


回答1:


Have you tried here:

https://github.com/SuaveIO/heroku-getting-started

Fork it and click the Deploy to Heroku button.




回答2:


Don't have the rep to comment on the above, but ademar's solution should cover as well as long as you don't have a file named "app.fsx"

The heroku buildpack checks to see if there is a script, then checks for a solution: https://github.com/SuaveIO/mono-script-buildpack/blob/master/bin/compile#L66

Just make sure there is a .sln file in the project directory (can be empty, just needs to be present) or fork the buildpack and just make it default run mono $YOURPROJECT in the compile step.




回答3:


When using an sln instead of a script, you need to change your Procfile to:

web: mono Path/execName.exe



来源:https://stackoverflow.com/questions/35681957/deploy-websharper-suave-web-application-to-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!