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
// takes in ?by=kati-frantz and returns { by: 'kati-frantz' } | |
const parse = (queryString) => { | |
if (queryString[0] === '?') { | |
queryString = queryString.substring(1) | |
} | |
let queries = queryString.split("&") | |
const params = {} | |
queries.forEach(query => { | |
const queryObject = query.split('=') |
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
// takes in ?by=kati-frantz and returns { by: 'kati-frantz' } | |
export const parse = (queryString) => { | |
if (queryString[0] === '?') { | |
queryString = queryString.substring(1) | |
} | |
let queries = queryString.split("&") | |
const params = {} | |
queries.forEach(query => { | |
const queryObject = query.split('=') |
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
# | |
# Requirements: | |
# - Ubuntu server | |
# - Root password for ubuntu server | |
# ssh into the server from local computer | |
ssh root@{server_name or server_ip_address} | |
#Updating ubuntu base packages |
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
# | |
# REQUIRES: | |
# - server (the forge server instance) | |
# - site_name (the name of the site folder) | |
# - sudo_password (random password for sudo) | |
# - db_password (random password for database user) | |
# - event_id (the provisioning event name) | |
# - callback (the callback URL) | |
# |