This file contains 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
Select hostname, droplet size and location | |
Select LAMP application image | |
Receive new droplet email for IP and password | |
Log in with | |
ssh root@[ip address] | |
Change MYSQL password to match root | |
mysqladmin -u root -p'password' password [new password] | |
Create MYSQL superuser | |
mysql -u root -p[password] | |
CREATE USER '[username]'@'localhost' IDENTIFIED BY '[password]'; |
This file contains 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
Download installer from App Store (don't proceed with installation) | |
Insert 8Gb SD card | |
Open Disk Utility | |
Ensure card is formatted with 1 'GUID Partition Table' partition | |
Ensure the partition is named 'BOOT' | |
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/BOOT --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction | |
Reboot, holding down the option key | |
Boot to the SD card |
This file contains 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
import { MiddlewareRequest } from "@netlify/next"; | |
export async function middleware(nextRequest) { | |
const pathname = nextRequest.nextUrl.pathname; | |
const request = new MiddlewareRequest(nextRequest); | |
if (pathname.startsWith("/static")) { | |
const unit = nextRequest.nextUrl.searchParams.get("unit"); | |
const response = await request.next(); |