Skip to content

Detailed Build Process

sam1rm edited this page Oct 21, 2015 · 2 revisions

1. Compile HTML/CSS/JS

Compile all assets into app.js

gulp -b

2. Initiate local server

Start local python server from root uguru directory

honcho start -f ProcfileDev

3. Open URL to see compiled app (quickest)

Open localhost:5000/app/ in browser of choice.

Make sure nothing is out of place from your :8100 local server

You are not longer in live re-load mode

4. Test in mobile device.

First make sure

  1. Device is in the same wifi as computer running the server

  2. Edit run.py as specified below

### Before
manager.run()
# app.run(host='192.168.0.102', port=5000)
### After
# manager.run()
app.run(host='{{YOUR LAN IP}}', port=5000)

5. Commit & push your branch locally

cd ~/uguru/

git add -A .
git commit -m "{{YOUR MESSAGE HERE}}"
git push origin {{YOUR BRANCH}}

6. Commit & push your branch to staging

FIRST TIME SETUP

git remote add staging https://git.heroku.com/uguru-rest-test.git

^^ If this doesn't work for you, login to your @uguru.me email address & search for Heroku - you may need to accept the invite

TEST that it WORKS

git remote -v

staging	https://git.heroku.com/uguru-rest-test.git (fetch)

staging	https://git.heroku.com/uguru-rest-test.git (push)

Push it to staging

git push staging {{YOURBRANCH}} : master
Clone this wiki locally