Reference awan.yml

KeyValue optionDescription
version1.0File version used. Currently the only version available is 1.0
webThe parent key in it is used to define the configuration associated with the application to be deployed.
web.typephp|python|java|nodejs|golang|static|aspnetcore|dockerThe runtime type used to run the application. The choice is one of php, python, java, nodej, golang, static, aspnetcore or docker
web.versionThe list of versions available at each runtime is in the following table.Version of the runtime used. Each runtime has its own versions.
web.runA list of sample commands to run applications based on each runtime is in the following table.The command used to run the application. The command depends on the type of runtime used.
web.doc_rootdoc_root: ./publicThe folder path used as the location of the bootstrap file. This key is used at php and static runtime.
web.package_manageryarn|npm|composerThis option is used in the Nodejs and PHP runtime. The choices are yarn or npm for Nodejs with the default value being yarn. And give the composer value for PHP
scriptThis option is used to run a command that is needed at the time before the install process or after the install process. The script options only apply to runtime: python, nodejs, java and golang
script.preinstallList of commands that will be run before the package manager is run.
script.postinstallThe list of commands that will be run after the package manager installation process.
script.healthcheckThe command used to carry out an internal health check application.
storage_dirThe directory location that the application needs to store files permanently.

List of runtime versions

RuntimeSupported version
php5.6, 7.0, 7.1, 7.2
python2.7, 3, 3.2
golang1.0, 1.11, 1.12, 1.13

Example of the run command for each runtime

RuntimeRun command example
pythongunicorn -b :$PORT --workers=2 my_web:app
nodejsnode index.js
nodejsnpm start
golanggo run main.go