Plateful Client Site - Plateful/plateful-mobile GitHub Wiki

The plateful mobile site is deployed from a separate repository: https://github.com/Plateful/plateful-client

The mobile site is deployed on heroku: http://platefulclient.herokuapp.com/

###Accessing Plateful-Client

  1. Create a new folder on your local computer
  2. Clone the plateful-client repo and add a remote:
git clone https://github.com/Plateful/plateful-client.git
git remote add upstream https://github.com/Plateful/plateful-client.git`

###Deploying to Plateful-Client

  1. Push final revisions to plateful-mobile master
  2. Pull current plateful-mobile master branch: git pull --rebase upstream master
  3. Run gulp build to compile the www file directory locally
  4. Navigate to your local plateful-client directory as created above
  5. Replace the www directory with the newly compiled www directory
  6. Add the commit the updated www directory: `git commit -a -m "Deploy client version 0.1"
  7. Push the changes to plateful-client master: git push upstream master
  8. Push the changes to heroku: git push heroku master

Pushing to heroku automatically runs npm install and executes the Procfile which starts the static server: node staticServer.js.