Skip to content

awayken/miles.ink

Repository files navigation

miles.ink

The writing homepage for Miles Rausch.

Build Status

Miles.ink is the homepage to learn more about Miles Rausch as a writer. It's powered by Eleventy and written by me, Miles Rausch.

WHAT?? Yes, the writer, Miles Rausch, is also the developer, Miles Rausch.

What's Miles.ink made out of?

Generating Miles.ink

Miles.ink is built on Eleventy. To see the site, we have to generate it. Eleventy builds static sites from all sorts of magic parts. There's data, posts, layouts and CSS to do styling.

To generate the site:

npm run build

Serving Miles.ink

Eleventy has a built-in server that can watch your files for updates and refresh the page for you. Cool? Def.

To serve the site:

npm start

Deploying Miles.ink

Miles.ink uses a Node script to deploy itself. To take advantage of deploy.js, you need to define some environment variables. The project includes the dotenv npm package to help facilitate this process. Make a copy of sample.env, rename it to .env and then fill out the values appropriately for your target FTP server. DO NOT commit your new .env file. It is ignored for a reason: to keep your secrets safe.

To deploy the site:

npm run deploy