Skip to content
Snippets Groups Projects
Commit de4a9880 authored by Jiří Ježek's avatar Jiří Ježek
Browse files

Changed ssh port of ssh

parent effc5770
No related branches found
No related tags found
1 merge request!120Changed ssh port of ssh
......@@ -33,9 +33,9 @@ deploy_cpanel:
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS_cpanel" >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- ssh docscloudmuni@docs.cloud.muni.cz 'mkdir ~/tmpdeploy'
- scp -r ./public/* docscloudmuni@docs.cloud.muni.cz:~/tmpdeploy
- ssh docscloudmuni@docs.cloud.muni.cz 'mv ~/public_html ~/todelete && mv ~/tmpdeploy ~/public_html && rm -rf ~/todelete'
- ssh -p 22202 docscloudmuni@docs.cloud.muni.cz 'mkdir ~/tmpdeploy'
- scp -P 22202 -r ./public/* docscloudmuni@docs.cloud.muni.cz:~/tmpdeploy
- ssh -p 22202 docscloudmuni@docs.cloud.muni.cz 'mv ~/public_html ~/todelete && mv ~/tmpdeploy ~/public_html && rm -rf ~/todelete'
- sleep 5
- latest_commit=$(git log -1 --pretty=format:%h )
- "curl -H 'Cache-Control: no-cache' https://docs.cloud.muni.cz | grep $latest_commit"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment