cloud) that allows you to edit / compile / run code on the iPad.īut an iPad with multi touch interface and a bluetooth keyboard opens up a lot of interesting possibilities as an IDE. With GitHub support (and soon, Heroku deployment).Īt the moment, iPad is not very good as a development environment, since Apple doesn't allow you to compile / run code on the iPad directly. It's not just a text editor with file transfer (FTP, Dropbox, etc.). As I work with this flow some more, I’ll make sure to note any other tricks once the comfort of habit sets in.Disclaimer: I'm doing something similar. I have a couple of other helper tricks I’ll write about later that make working with Jekyll easier. From a writing perspective I find the constraints a helpful aid in focusing on the writing and not getting distracted to mess with other things. Overall this workflow allows me to stick with the tech stack I’ve gotten used to while affording the flexibility to write on the iPad or my phone. Managing this collection of randomness makes for kind of a mess in a git repository, so it’s nice to have it organized elsewhere.
I treat Ulysses sheets like idea scratchpads so I’ll have dozens of partially-written post ideas collected there and little by little turn some into completed articles. So there’s a step to get the content moved over when ready to a real post in git. One other aspect is that I still do most draft writing and idea-keeping in Ulysses, which is my app of choice for any writing on iOS or macOS. Getting through this initial setup was a bit cumbersome - getting the SSH keys sorted out between my main machine, GitHub permissions, and iOS was a bit of a runaround - but I’ve got it all working smoothly now. In order to access the server and run the site in dev mode, Textastic also has a built-in SSH terminal. With my iPad Pro, I put the Working Copy app in the right side multitask panel so I can manage branching, commits, and pushes while I’ve also got the editor open. Inside of Textastic you can add a Working Copy repo as a working directory, meaning your edits happen directly in the repo. The second is a rich code editor for iOS that is very impressive in its depth. The first is a full-featured git client you can use to clone repositories and manage versioning. Digging around on this topic I discovered a solution that’s working well so far: a combination of Working Copy and Textastic. Next I had to figure out what software on the iPad I could use to combine the writing, versioning, and pushing up to the server for preview or testing purposes. Getting the site checked out and running locally on the server is fairly straightforward if you’ve got a working knowledge of Linux and comfort on the shell 2. For about $10/month I have a full Ubuntu server running, on which I can install whatever I want 1. My solution starts with running a micro EC2 instance on AWS. This means you need to have a server to connect to to do anything. There’s no native unix-like shell on iOS, only terminal apps. The first two hurdles aren’t trivial on the iPad. On the Mac this is simple: checkout repository, run command to generate site, browse to URL in browser. Jekyll has a built-in web server you can run locally (what happens when you run jekyll serve) on the terminal that generates and serves the site at localhost where you can preview before you publish. The main sticking point I needed to solve was previewing content. But I sort of get a kick out of getting this stuff working and use it as a learning experience. Given that Jekyll today still requires a working knowledge of git and a command line interface, I recognize that this is highly personal to me, so I wouldn’t really recommend this setup to people focused on writing. Most writers wouldn’t want to bother with this and would move to a CMS to clear the hurdles. This workflow is great with a full Mac setup, but on iPad or mobile, there isn’t a straightforward way to write and publish new content. Other CMS systems are interesting and getting better, but there’s something about the total control and simplicity of static sites that keeps me here. I’ve been using Jekyll and GitHub Pages for this site for 5+ years. Part of what I had to crack to make that possible was a writing workflow that supported using the tools I prefer, and a method for publishing and previewing with Jekyll. I posted a couple weeks ago about moving much of my computing activity to the iPad full time.