Skip to content

Instantly share code, notes, and snippets.

@kellishouts
Last active July 8, 2016 04:23
Show Gist options
  • Save kellishouts/593fae10c8b5907684c6252dfe5905cb to your computer and use it in GitHub Desktop.
Save kellishouts/593fae10c8b5907684c6252dfe5905cb to your computer and use it in GitHub Desktop.
Running Airship CLI

Running Airship CLI/Server connected to staging (airshipcms-alpha.io)

[1] For STAGING make sure your .env looks like this:

AIRSHIP_API="http://truffaux.airshipcms-alpha.io"
AIRSHIP_SUBDOMAIN_HOST="airshipcms-alpha.io"
AIRSHIP_PORT=4000

[2] Run this command from anywhere, to download the latest server files:

curl https://s3-us-west-1.amazonaws.com/install.airshipcms-alpha.io/airship-server.tar.bz2 | tar -xvj -C /usr/local/lib/airship

[3] Run this command from anywhere, to download the latest cli tools for STAGING:

curl https://s3-us-west-1.amazonaws.com/install.airshipcms-alpha.io/Mac64/airship-alpha > /usr/local/bin/airship-alpha

[4] Run this. It makes the static file executable.

chmod +x /usr/local/bin/airship-alpha

[5] Running airship commands looks slightly different, like this (note that it's airship-alpha instead of just airship now):

env $(cat .env | xargs) airship-alpha serve

Running Airship CLI/Server connected to production (airshipcms.io)

[1] For PRODUCTION make sure your .env looks like this:

AIRSHIP_API="https://truffaux.airshipcms.io"
AIRSHIP_SUBDOMAIN_HOST="airshipcms.io"
AIRSHIP_PORT=4000

[2a] Make sure you have the main airship directory set up in your /usr/bin

mkdir -p /usr/local/lib/airship/

[2b] Run this command from anywhere, to download the latest server files:

curl https://s3-us-west-1.amazonaws.com/install.airshipcms.io/airship-server.tar.bz2 | tar -xvj -C /usr/local/lib/airship

[3] Run this command from anywhere, to download the latest cli tools for PRODUCTION:

curl https://s3-us-west-1.amazonaws.com/install.airshipcms.io/Mac64/airship > /usr/local/bin/airship

[4] Run this. It makes the static file executable.

chmod +x /usr/local/bin/airship

[5] Running airship commands looks like this:

env $(cat .env | xargs) airship serve

Running Airship CLI/Server connected to production (HACKY, NON-HTTPS)

[1] For PRODUCTION make sure your .env looks like this:

AIRSHIP_API="http://truffaux.airshipcms.io"
AIRSHIP_SUBDOMAIN_HOST="airshipcms.io"
AIRSHIP_PORT=4000

[2]Run airship commands like normal, though using the staging http version.

env $(cat .env | xargs) airship serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment