-
Notifications
You must be signed in to change notification settings - Fork 7
Walkthrough
Luca Di Maio edited this page Jan 25, 2017
·
9 revisions
Here we document all steps needed for setting up AppFlow on a blank developer machine, usually running OS X or GNU/Linux.
Be sure to have installed this components:
% bash <(curl -s https://raw.githubusercontent.com/ttssdev/appflow/master/utils/appflow.sh)
This will Install and run AppFlow locally to provision all the required packages. It will also initialize the base VM (atlantis) if you want. AppFlow installs different packages depending on the local development environment:
- Create new config directory layout -
mkdir -p ~/.appflow/{tenant,vault}
- Copy
config.example
to~/.appflow/config
and update variables:
-
CFG_TENANT_ID
- identity of the own tenant -
CFG_TENANT_NAME
- name of the own tenant -
CFG_TENANT_ENV
- default provisioning environment -
CFG_APPFLOW_SUPPORT_MAIL
- e-mail address to send support requests to
- Copy the
appflow-mrrobot
folder inexamples
to~/.appflow/tenant/
- Link the folder:
ln -s ~/.appflow/tenant/appflow-mrrobot ~/.appflow/tenant/mrrobot
- Copy the
vault
folder inexamples
to~/.appflow/vault
Now you are ready to deploy!
You can start provisioning with:
appflow provision env=development tenant=mrrobot
In case you did not initialize the VM during the installation process, or you want to initialize a new VM, these are simple steps:
% appflow init-vm
% appflow vagrant up atlantis
This will initialize the default VM (Ubuntu 14.04) In case you prefer CentOS/RHEL (Experimental for now)
% appflow init-vm
% appflow vagrant up atlantis-centos
% appflow ssh [tenant=<tenant>] [env=<environment>]
% assh config build > ~/.ssh/config