Running dnx web from the command line starts your host. To qualify for automatic recompilation, you need to look at the files for changes and restart the host if any changes are found. To do this, use the --watch flag and run your web command as follows:
dnx --watch web
Currently, it just shuts down your host when a change is detected, so you need something that reloads it as soon as this happens. IISExpress does this for you if you are running a project from Visual Studio 14.
Your best bet for this workflow outside of Visual Studio is the JavaScript build tool or npm scripts. I would recommend you study this gulp -aspnet-k plugin (note that this plugin only works with windows at the moment) if you want continuous recompilation when changing a file while working outside of VS14. This seems to be the best way to achieve this without IISExpress, which I found. This plugin has / was Windows specific, but when viewing the code you need to get started. :)
Glen F. Henriksen wrote a wrapper for nodemon, which is very nice, called kmon. Try it too.
The kmon GitHub repository has all the necessary instructions. source share