[2.0.3] Deploying subdirectory to Heroku

324 views
Skip to first unread message

zievereir

unread,
Aug 11, 2012, 2:25:40 PM8/11/12
to play-fr...@googlegroups.com
Hi,

I'm trying to deploy my Play application to Heroku. In my git repository my Play application is located a couple levels deeper: MY_REPOSITORY/trunk/myapp.

Obviously when I try to push it to Heroku it doesn't recognise the structure. In all the examples I found people seem to be initialising their git repository inside the root of their Play application. Is this a convention I'm breaking and is this really a required in order to deploy to Heroku?

Thanks!

zievereir

unread,
Aug 11, 2012, 2:35:10 PM8/11/12
to play-fr...@googlegroups.com
My bad, I should've looked a bit longer. Got it resolved by using git subtree as described here: http://stackoverflow.com/questions/5977234/how-can-i-push-a-part-of-my-git-repo-to-heroku .

After installing that, $ git subtree push --prefix trunk/myapp heroku master did the trick!
Reply all
Reply to author
Forward
0 new messages