Static HTML

Static HTML Recognition Strategy

By default, the platform will recognize it as a static language project based on whether there is an index.html file in the source root directory.

Compilation Principle

  1. After the pre-compilation process is completed, the static buildpack will be selected according to the language type to compile the project. The defined web service Nginx or Apache will be installed during the compilation process;
  2. After the compilation is completed, it will be checked whether the Procfile parameter is set on the platform. If it is configured, the startup command configuration file Procfile will be overwritten.

Static Language Project Source Code Specification

  1. The source code program must be hosted on gitlab and other related git or svn services
  2. The index.html file must exist in the source root directory

Procfile Specification

If Procfile is not defined, the following default Procfile will be generated

web: sh

Web Service Support

Use the latest stable version of Nginx by default

Custom Nginx Configuration

Need to define the nginx configuration file in the source root directory: web.conf, the default configuration file is

server {
    listen       80;
    location / {
        root   /app/www;
        index  index.html index.htm;

Sample Code

Static Html sample code