Skip to main content

Develop configuration

Overview / Spec / Develop



One-click Running#

name: example
serviceType: deployment
containers:
- name: you-container
dev:
command:
run: [ "./gradlew", "bootRun" ]

You can use one-click running after configuring command.run. The commands and parameters correspond to different elements in the array. For example, ./gradlew bootRun will be ["./gradlew", "bootRun"]

How to use one-click running

See more instructions in Remote Run.



One-click Debugging#

name: example
serviceType: deployment
containers:
- name: you-container
dev:
command:
debug:
- ./gradlew
- bootRun
- --debug-jvm
debug:
remoteDebugPort: 5005

Apart from configuring command.debug, you also need to enter a debug port. For example, the default debug port for gradle is 5005. If you want to use other ports, here remoteDebugPort should be changed too.

How to use one-click debugging

See more instructions in Remote Debugging.



Configure HotReload#

name: example
serviceType: deployment
containers:
- name: you-container
dev:
hotReload: true

With run or debug configured, you can further configure hotReload: true to enable HotReload. Nocalhost offers liveReload, so if your programming language and running method do not support HotReload or the configuration is too complex, you can try to use the HotReload provided by Nocalhost.

HotReload with run command
name: example
serviceType: deployment
containers:
- name: you-container
dev:
command:
run: [ "./gradlew", "bootRun" ]
hotReload: true
Last updated on by Tank Xu