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
<script type="application/ld+json"> | |
{ | |
"@context": "https:\/\/schema.org", | |
"@type": "FAQPage", | |
"mainEntity": [ | |
{ | |
"@type": "Question", | |
"name": "How often do I water the Calathea Ornata?", | |
"acceptedAnswer": { | |
"@type": "Answer", |
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
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "Organization", | |
"url": "https://www.roelofjanelsinga.com", | |
"logo": "https://www.roelofjanelsinga.com/images/logo/logo_avatar.jpg" | |
"name": "Roelof Jan Elsinga" | |
} | |
</script> |
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
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "WebSite", | |
"url": "https://roelofjanelsinga.com/", | |
"potentialAction": { | |
"@type": "SearchAction", | |
"target": "https://roelofjanelsinga.com/articles?q={search_term_string}", | |
"query-input": "required name=search_term_string" | |
} |
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
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello, World!") | |
} |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"strconv" | |
) | |
func main() { | |
var message = flag.String( |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"os" | |
) | |
func main() { |
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
- hosts: roelofjanelsinga.com # You can also specify an IP address | |
vars_files: | |
- secrets.yml # Contains the github_user and github_token variable | |
vars: # Define new variables | |
github_repo_url: https://{{github_user}}:{{github_token}}@github.com/roelofjan-elsinga/portfolio.git | |
working_directory: /path/to/app | |
tasks: | |
- name: "Pull changes from GitHub" | |
git: | |
repo: "{{github_repo_url}}", # This is how we can make this step reusable across projects |
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
- name: "Pull changes from GitHub" | |
git: | |
repo: "{{github_repo_url}}", # This is how we can make this step reusable across projects | |
dest: "{{working_directory}}" | |
version: master # Branch to pull | |
accept_hostkey: yes | |
notify: | |
- install_composer_deps | |
- cache_laravel_config | |
- clear_laravel_views |
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
- hosts: roelofjanelsinga.com | |
vars_files: | |
- secrets.yml | |
vars: | |
github_repo_url: https://{{github_user}}:{{github_token}}@github.com/roelofjan-elsinga/portfolio.git | |
working_directory: /path/to/app | |
roles: | |
- deploy_laravel_app |
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
- name: install_composer_deps | |
script: composer install --no-scripts --no-dev | |
- name: cache_laravel_config | |
script: "php artisan config:cache" | |
- name: clear_laravel_views | |
script: "php artisan view:clear" | |
- name: run_laravel_migrations |