Refer How To Add A Parameter to have the instance requested with port
parameter:
Add port parameter in request script. Make sure to edit it in your request file instead of the example one :
slapos request $sofware_name'_1' $software_release_uri --parameters ... port=8086
For example,
slapos request $software_name'_1' $software_release_uri --parameters \
title='John Doe' \
download_url='https://lab.nexedi.com/nexedi/converse.js/-/archive/nexedi-v4.2.0/converse.js-nexedi-v4.2.0.tar.gz' \
port=8086
Request:
$ cd ~/srv/project/slapos/software/html5as-base/
$ bash ../../../request-html5as-base.sh
You are supposed to re-compiling and re-instantiating:
$ slapos node software --all
$ slapos node instance --all
slapos node software (--all)
and slapos node instance (--all)
are the commands for compiling and instantiating. Before instantiating please make sure that the compilation is completed.
You can observe that the output of request script is still with 8081
port for server_url
, which will be replaced by 8086
as you edited in the request script.
Note : you have to remove slapos supply $software_release_uri slaprunner from the request script ! (Either by deleting or using #). Look below for an example.