Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start server process in dir where cmd was called
When a Spring server boots, it maintains its directory for the duration of its life-cycle. This means that if you've changed directories and run a Spring command, the process will start within the context of the original directory. This is problematic in the use case of engines, where an engine command may be run from the context of the host application, and then run again from the engine directory. In this scenario, the process will assume its working directory is the host application instead of the engine. The solution proposed here is to change the current directory to where the Spring command was called from. The directory is taken from ENV['PWD']
- Loading branch information