refactor: deploy script handler now works with 3 environments dev, prod and test