Push to remote repo will automagically update the files.
-
Set-up bare git on remote
$ cd /var/www/{appfolder} $ sudo mkdir .git $ cd .git
$ sudo git init --bare
| $ curl -X POST https://api.verifiedbycam.com/v2/request \ | |
| -H "X-App-Key: c9cf97d8c394a861" \ | |
| -H "X-Secret-Key: 779de173efee7e3b2e816c164004dd77d6ac1967dc6d0ca128cd5cd7afd77503" \ | |
| -H "Content-Type: application/json" \ | |
| -d "pin=true" \ | |
| -d '{ | |
| "uid": 4323499, | |
| "callback": "https://domain.com/request-received", | |
| "caption": "Hi! My name is Finn of Adventure Time!", | |
| "data": { |
| { | |
| "link": "https://api.verifiedbycam.com/delegate?token=13e26bbfc2847f786c7971c", | |
| "token": "13e26bbfc2847f786c7971c" | |
| } |
| $ curl -X POST https://api.verifiedbycam.com/v2/request \ | |
| -H "X-App-Key: c9cf97d8c394a861" \ | |
| -H "X-Secret-Key: 779de173efee7e3b2e816c164004dd77d6ac1967dc6d0ca128cd5cd7afd77503" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "uid": 4323499, | |
| "callback": "https://domain.com/request-received", | |
| "caption": "Hi! My name is Finn of Adventure Time!", | |
| "data": { | |
| "email": "foo@bar.test", |
| { | |
| "message": "An unknown error has occured.", | |
| "error_id": "13e09fbdbafb1bbaf619eea53b4f2e97284cf7c0e2510933ddd2ec81a8118eb3" | |
| } |
| { | |
| "link": "https://api.verifiedbycam.com/delegate?token=13e26bbfc2847f786c7971c", | |
| "token": "13e26bbfc2847f786c7971c" | |
| } |
| $ curl -G https://api.verifiedbycam.com/v2/requests \ | |
| -H "X-App-Key: c9cf97d8c394a861" \ | |
| -H "X-Secret-Key: 779de173efee7e3b2e816c164004dd77d6ac1967dc6d0ca128cd5cd7afd77503" |
| server { | |
| listen 80; | |
| server_name domain.dev; | |
| # force all requests to connec via HTTPS | |
| return 301 https://domain.dev$request_uri; | |
| } | |
| server { | |
| listen 443 ssl; |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server ipv6only=on; | |
| root /usr/share/nginx/html; | |
| index index.php index.html index.htm; | |
| server_name localhost; | |
| location / { |
| #!/usr/bin/env bash | |
| # Variables | |
| APPNAME=appname | |
| DBHOST=localhost | |
| DBNAME=db_app | |
| DBUSER=user1 | |
| DBPASSWD=password1 | |
| # Update the box |