https://github.com/onza/deploy
Simple script to synchronize projects on the remote server.
https://github.com/onza/deploy
bash deploy deployment rsync shell sync synchronisation typo3
Last synced: 13 days ago
JSON representation
Simple script to synchronize projects on the remote server.
- Host: GitHub
- URL: https://github.com/onza/deploy
- Owner: onza
- License: unlicense
- Created: 2019-10-15T14:06:29.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-03-28T09:22:50.000Z (about 3 years ago)
- Last Synced: 2024-03-08T13:28:54.376Z (over 2 years ago)
- Topics: bash, deploy, deployment, rsync, shell, sync, synchronisation, typo3
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Bash shell script to sync local project to a remote server
### How to use
Place the ```deploy.sh``` file in the local project directory and adjust 'username', 'remote_path' and 'local_path'. Add files/directories to 'excludestr' that should not be mounted on the remote server.
Run ```sh deploy.sh```.
#### :bangbang: Be careful with the path to the remote server
The script syncs the local project with ```--delete --force``` and deletes any inconsistent files and directories on the remote server. If you only want to deploy the changes then delete ```--delete --force``` from the script.
### Dependency
'rsync' must be installed on the remote server.