SamKirkland / ftp-deploy

Deploy websites over FTP with one command line
MIT License
89 stars 43 forks source link

Change implementation of state-name #32

Closed Kwonunn closed 11 months ago

Kwonunn commented 1 year ago

Before, it was not possible to use the stateName parameter to place the state file outside of the deploy directory, because the entire stateName parameter was also used to determine where to store the local state file.

This serves no purpose, as the local state file is never uploaded and thrown away when the job finishes.

This issue changes the location of the local state file to always be ./local_state.json, meaning that you can now use stateName to place the state file outside the deploy directory by using parameters such as: serverDir: somefolder/deployfolder stateName: ../statefile.json