Tuesday 15 April 2014

Rails - how to start up a local server (thin) with a specific git branch -



Rails - how to start up a local server (thin) with a specific git branch -

i have rails 3.2.16 app multiple git branches (for testing features). utilize thin spin server in development. if have branch called "dev" instance , i'm checked out branch in git. default thinwill pickup whatever in app directory , serve up. if wanted serve in master branch. there way serve master branch in lean (or in rails s can work app in branch in browser?

so have multiple branches, want test app in browser using branch. how can that?

locally switch branch want

git checkout master

and

rails server

bring app branch

you can

git checkout dev

or

git checkout master

at point in order run

rails server

for branch

you don't need restart server simple applications.

"by default lean pickup whatever in app directory..." - yes branch checked out.

so ever branch on same 1 used in rails server looking @ , editing files locally. if switch branch, both code , server looking @ files exist in branch.

ruby-on-rails ruby-on-rails-3 git github branch

No comments:

Post a Comment