This adds:
- Two entries in the manifest:
- A choice for the NodeJS version
- A port (provisionned in any case due to ynh limitations, but this should not matter)
- Services and configs:
- Systemctl configs to run the NodeJS server
- A watcher service and path to restart NodeJS upon file update
- A custom NGinx config because it is incompatible with the default one
- Docs:
- More info in the description and admin
The install/remove/backup/restore have been adapted and tested.
The upgrade script is updated but not tested
The change_url script does not change
It is not possible to have both PHP and NodeJS to keep the scripts simple.
SInce installing Yunohost 2.4, I couldn't display the `index.html` page of a vanilla my_webapp installation (404). Nginx logs displayed this error:
> [error] 6345#0: *218 open() "/usr/share/nginx/htmlindex.php" failed (2: No such file or directory), client: 82.66.214.87, server: kemenaran.eu, request: "GET /index.html HTTP/1.1", host: "kemenaran.eu"
Steps to reproduce:
1. Install Yunohost 2.4
2. Add a new custom domain (e.g. mydomain.com)
3. Install a my_webapp using this custom domain
4. Attempt to open `mydomain.com./index.html` in a web browser
Adding this trailing slash solves the issue. I'm not sure this is how it should be solved, but it fixed a painful issue for me :)