2

I am creating a web app in Erlang with n2o. My current dilemma is the automatic syncing of changes i make to the app's source code to that with the accommodating release.

For example, I startup my app release in the erlang console, go to specific localhost:? address and see index.erl being reflected in the page with <span>Hello</span> shown. I then go back to modify the index.erl file to say Hello World instead. The changes are not reflected. So i end up regenerating a release to see the new changes.

I guess I could write a bash script to synchronize changes between the app source files and the release libraries, but I imagine there must be better ways of doing this.

What is the appropriate way of doing this?

4

2 回答 2

3

您正在寻找的同步功能在n2o README中进行了说明。

于 2014-06-08T15:11:07.820 回答
1

克隆 git-repo 5HT/n2o 并按照该存储库的示例部分中的说明进行操作。对其中一个源文件进行更改,一旦它们被保存,您就可以在 erlang shell 以及网站本身中看到更新的更改。

于 2014-06-09T16:07:42.747 回答