a portable `/bin` directory should appear where binary and base contents are located.
### Manual build
Or you can manually compile with `go build` inside the `src` directory. Move the binary and put it alongside `pages`, `scripts` and `static` (or specify the path to the contents directory via configuration file which is created automatically upon first launch).
which will create `dela.zip` archive with all the content directories and the binary which can be freely transported to other machines (of the same OS and architecture)
### Cross compilation
For cross-platform compilation there is:
```
make cross
```
which cross compiles the project for linux, freebsd, windows and darwin systems. Portable solutions will be put in `/bin` directory in the corresponding subdirectories.
After the first run a configuration file will be put alongside the executable, upon the second launch the server will start and the service will be accessible on the specified port.
Currently configuration file contains these filelds:
```json
{
"port": 8080,
"cert_file_path": "",
"key_file_path": "",
"base_content_dir": ".",
"production_db_name": "dela.db"
}
```
| Field | Description |
| --- | ----------- |
| port | port on which the service will run |
| cert_file_path | path to the SSL certificate file |
| key_file_path | path to the SSL certificate key file |
| base_content_dir | path to the directory with `pages`, `scripts` and `static` subdirectories |