You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`DSDEPLOY_FTP_PASSWORD`|`string`| FTP password (prompted if none given) |
21
+
|`DSDEPLOY_FTP_PORT`|`integer`| FTP port (default 21) |
22
+
|`DSDEPLOY_FTP_REMOTE_DIR`|`string`| Remote directory name where file will be placed, will use the project directory name if not provided |
23
+
|`DSDEPLOY_FTP_LOCAL_DIR`|`string`| Local directory to upload, will look for the dist or build directory if not provided |
24
+
|`DSDEPLOY_FTP_DELETE_REMOTE`|`integer`| Set to `0` or `1` to delete remote files before upload (default `0`) |
25
+
|`DSDEPLOY_FTP_FORCE_PASSIVE_MODE`|`integer`| Set to `0` or `1` to use passive mode (default `1`) |
26
+
|`DSDEPLOY_FTP_USE_SFTP`|`integer`| Set to `0` or `1` to use SFTP (default `0`) |
27
+
|`DSDEPLOY_FTP_PREDEPLOY`|`string`| Execute commands before deploy, you can define multiple commands to execute by separating them with a semicolon. If you don't want to execute any commands, set the variable to `none` (default: `npm run build`). |
28
+
29
+
### Example of a .env.local with default/example values
include: ["*","**/*"],// this would upload everything except dot files
64
79
deleteRemote: parseInt(process.env.DSDEPLOY_FTP_DELETE_REMOTE)===1,// delete ALL existing files at destination before uploading, if true
65
80
forcePasv: typeofprocess.env.DSDEPLOY_FTP_FORCE_PASSIVE_MODE!=='undefined' ? parseInt(process.env.DSDEPLOY_FTP_FORCE_PASSIVE_MODE)===1 : true,// Passive mode is forced (EPSV command is not sent)
0 commit comments