This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set these to the correct values | |
| $server_address = "vpn.example.com" | |
| $connection_name = "VPN Connection" | |
| $certificate_path = "certificate.p12" | |
| $ca_cert_path = "strongswanCert.pem" | |
| $password = ConvertTo-SecureString -String "P12 passphrase" -AsPlainText -Force | |
| # Import machine cert | |
| Import-PfxCertificate -FilePath $certificate_path -CertStoreLocation Cert:\LocalMachine\My\ -Password $password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Change to the project directory | |
| cd /home/forge/domain.com | |
| # Turn on maintenance mode | |
| php artisan down | |
| # Pull the latest changes from the git repository | |
| # git reset --hard | |
| # git clean -df | |
| git pull origin master |