Install Cowboy, refer to official documentation: http://ninenines.eu/docs/en/cowboy/1.0/guide/getting_started/
Add dependent libraries: added in makefile, will be compiled automatically. Added in Gateway.app.src, the compilation system will find the corresponding compilation library copy to the working directory in this file. Makefile added is the name of the library directory, GATEWAY.APP.SRC added is the application name, careless will be written wrong.
There are some problems in the process of adding dependent libraries.
Issue One: "Git clone error", if the makefile added a dependent library, if the Deps folder can not find the corresponding library, the default from the Git repository clone, so you need to install Git. Installation may not be possible yet, the server SSL certificate may not be signed by a third party. So, before executing makefile, add env git_ssl_no_verify=true, this time ignoring SSL authentication.
question two: "Unable to automatically git clone dependency library", first go to GitHub to search this library, and then manually git clone down. Or do not install git at all, directly wget down to extract to the Deps folder.
question three: "Some standard library applications cannot be started, such as SASL", gateway.app.src add SASL. At compile time, the SASL compilation library is copied to the working directory. If you want to customize the SASL configuration file, copy the SASL library under the installation directory to the Deps directory. and modify the Sasl.app file for the Ebin directory. Similarly, the SASL compilation library is copied to the working directory at compile time.
Cowboy Learning Notes (Installation and Deployment)