Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benadamstyles/upload-site
A simple script to upload your folder to a remote server, via ftp
https://github.com/benadamstyles/upload-site
deploy ftp static-site upload website
Last synced: 4 days ago
JSON representation
A simple script to upload your folder to a remote server, via ftp
- Host: GitHub
- URL: https://github.com/benadamstyles/upload-site
- Owner: benadamstyles
- License: mit
- Created: 2018-04-11T13:46:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-17T02:56:42.000Z (almost 6 years ago)
- Last Synced: 2024-12-03T15:46:28.543Z (20 days ago)
- Topics: deploy, ftp, static-site, upload, website
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/upload-site
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# upload-site
A simple script to upload your folder to a remote server, via `ftp`.
Supports incremental uploads via directory hashing – in other words, if you haven't changed any of the contents of a sub-folder, next time you run this script, it will **ignore** that sub-folder. Then, if you change any of the contents of that sub-folder, next time you run this script, it will **upload** that sub-folder.
```sh
yarn add --dev upload-siteyarn run upload-site
```## Requirements
This package requires [Node.js](https://nodejs.org/) **v9** or greater.
## Configuration
### `package.json`
```json
{
"upload-site": {
"auth": {
"host": "domain.com",
"port": 21,
"authKey": "my-ftppass-json-key"
},
"src": "dist",
"dest": "/blog"
}
}
```### `.ftppass`
> **Note:** make sure to add `.ftppass` to your `.gitignore`!
```json
{
"my-ftppass-json-key": {
"username": "[email protected]",
"password": "qwertyui"
}
}
```### CLI options
#### `--debug`
extra logging
#### `--dry`
perform all actions **except** `ftp put` – useful for testing ftp login, etc