Landing Page Builder Forked from previous project to be put to use as a more generic option.
- Node 4.2 or > required
- Roots installed globally optional
- clone this repo down and
cdinto the folder - run
npm install - Add contentful keys to the
.envfile (see example) - run
roots watchornpm run roots watch
You will need the contentful keys to build the site locally. Those can be found on passpack.
To deploy from your local machine you will need the Netlify access key also found in passpack, however the app will automatically deploy from Netlify if the github repo is updated or content is changed in Contentful.
This site is hosted at Netlify.
Run make deploy to deploy the site. This command is a shortcut for compiling the site with roots and deploying using ship. See the Makefile for more info.
Changes in Github or Contentful kick off a build on Netlify via webhooks
_________
| Github |---commit----------------|
--------- | _________ _______________
|----->| Netlify| --->| Static Files |
_____________ | --------- ---------------
| Contentful |---update published--|
-------------
- Node 4.2 or > required
- Get Workable API Token and put int in your .env file (see below)
- Make sure you install the docker toolbox: https://www.docker.com/products/docker-toolbox
- Open your terminal with the "Docker Quickstart Terminal" app
- or
docker-machine start default && eval "$(docker-machine env default)" docker-compose up- api is at
<yourdockermachineip>:3000 - run tests with
docker-compose run web npm test
Some docker cli help:
- Completion: https://docs.docker.com/compose/completion/
- Make some aliases
npm install
npm start
Can be found on passpack.
bundle exec tape ansible docker_deploy --vault-password-file .vault_pass.txt
Get the vault password from passpack.