You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Give instructions for creating an app from a local clone #1
After every code change you make and for which you want to do a build, you need to run again:
oc start-build srpminfo --from-dir=.
Because this is a binary build linked to your local checkout, you cannot use the start build button in the web console as it doesn't have access to the code files and the build will fail.
use a local virtualenv & python wsgi.py for dev iterations
commit and do a proper deployment to update the cluster
I could do an intermediate step with oc cluster up to get a more complete deployment working locally, but the minimalist approach is actually working pretty well so far.
Activity
GrahamDumpleton commentedon Dec 2, 2016
To do it from a local clone only, without having your own fork on GitHub with the changes, entails using a binary build. The first steps for this are:
Once the first build has completed, then run:
After every code change you make and for which you want to do a build, you need to run again:
Because this is a binary build linked to your local checkout, you cannot use the start build button in the web console as it doesn't have access to the code files and the build will fail.
ncoghlan commentedon Dec 2, 2016
The approach I've been taking is this:
python wsgi.pyfor dev iterationsI could do an intermediate step with
oc cluster upto get a more complete deployment working locally, but the minimalist approach is actually working pretty well so far.ncoghlan commentedon Dec 2, 2016
That is, deployments are a matter of:
And then the redeployment once the build finishes is automatic.
issue OpenShiftDemos#1: quotation mark replaced with backslash quotat…