I have Play! application in Bitbucket. I have my local repo linked to both Bitbucket and Heroku and everything works fine (whenever I push to heroku master, the application re-builds and I can see the changes online). Now, I want only to push to bitbucket and deploy to Heroku, i.e. I want to push to Bitbucket, and my Heroku app to pick the changes from Bitbucket and rebuilds the app. The reason I want this is because Bitbucket now offers online code editing and I do not always have Git or Heroku Toolbelt installed in the systems I work. It will also be nice to manage a single repo.
I know that Heroku maintains it's own git system and from Heroku's Settings tab, I can see following info -
Region: United States
Stack: Cedar
Framework: Play 2.x - Scala
Git URL: git#heroku.com:xyz-abc.git
Repo size: 139 MB
Slug size: 117 MB of 200 MB
Also, I have changed the GitHub Repo settings in Heroku to git#bitbucket.org:user-xyz/xyz-abc.git. I have found this and this SO issues and this Heroku documentation related to my requirement, but couldn't make it work. Is it even possible?
You could have used Bitbucket Services; unfortunately, there is none for Github. Maybe you could try to build one and submit to Bitbucket.
The Github Repo setting in Heroku simply displays the commit diffs in the activity log - there's a note to that effect just in the Github repo text
Link your app to a GitHub repository to see commit diffs in the activity log.
It doesn't provide any other functionality at present.
I'm not familiar with Play myself, but with Rails and the add Codeship.io (and others I imagine) you can do continuous deployment where you push to github/bitbucket and that then uses a webhook to trigger codeship to pick up your code, test it and then deploy it to Heroku. I'm sure there are Play hosted testing services out there which may help.
Related
I am hosting a Discord bot on Heroku so it stay live 24/7. I have the code local on my computer and update the code by running the below code. My only question is how can I access the code on another computer to work away from home.
git add .
git commit -am "making it better"
git push Heroku master
There isn't a way to "make the folder a GitHub link". Heroku builds your application and its runtime into a slug and this slug is what runs on your dynos. There is no way to update the code you're running without building a new slug.
However, you can deploy directly from GitHub, either manually or automatically when new commits are added to a branch. I strongly recommend having a good test suite in either case, but this is especially important if you want to do automatic deployments.
My company has a Git repository hosted on our servers. We use TortoiseGit. I would like to integrate it with GitHub Issues.
Is this possible? Note that we do not host our repository on GitHub.
I have tried using the bugtraq settings on TortoiseGit but it doesn't interact with the repository I've set up on GitHub.
I would like to integrate it with GitHub Issues. Is this possible?
Integrate in this context is a very open concept. Which integrations are you looking for? If you're not hosting the code on the repository itself, any kind of integration will be hard, but it really depends on your specific goal with GitHub Issues and which kind of triggers and links you want from your code to your issues.
From experience if I assume that by integration you mean linking Git commits in your local repository to GitHub Issues the clear answer is no.
So if you really want to use GitHub Issues without pushing the Git code upstream, have you considered creating an empty project to just use GitHub Issues and GitHub Projects. You won't be able to reference issues from the commit message, i.e., Fixed issue found in #4 but you can use it as a standalone project management tool.
Trello offers a free tier for project management that you might also want to check out.
I am trying to use a team services account to store other related documents for a project such as some spreadsheets. I want the client to have access to it, but they are not programmers so I am not wanting them to use VS.
The client can access it directly without a problem and can download files, the biggest issue is they will need to be able to upload files as well. Without using a client of some sort they are limited to 10mb or less which won't work for them.
I cannot seem to get github for the desktop to access my online repository unless I first go into VS and clone it.
I am trying to avoid having to walk the client through doing that and would like to be able to use a GUI like github desktop from end to end.
We are all in a Windows environment.
I can create a new repository in github desktop, but cannot seem to figure out how to connect it to my remote (I can't find the URL for the remote anywhere).
I feel I am so close but just missing a couple items, any push would be appreciated.
GitHub Desktop is for GitHub. GitHub is a Git repository hosting service. Not surprisingly, the GitHub tool only works with GitHub.
You can use any general-purpose Git client to interact with VSTS Git repos. SourceTree is good.
You can use some git GUI or git command line to operate local repo.
Git GUI: as Daniel Mann said, you can use soucetree, or tortoiseGit etc.
Git command line:
you can download git here ->
git clone https://account.visualstudio.com/_git/projectname ->
enter email and password to clone ->
git add . (when you add some files) ->
git commit -am 'message'(commit the changes you make) ->
git push(push your commits into VSTS git repo) ->
git pull(pull VSTS git repo changes to localt).
I am just closing this out, thank you to both folks who did answer. I understand that I am using GIT and that GitHub Desktop is for Github. I was looking for the best way to work with a Github repository without using VS and how to access the team services repo for a client of mine. I set him up with Gitkraken which is working. I was never able to figure out how to get Github Desktop to properly clone and push items, but I did not spend a ton of time in it once I used Gitkraken.
Thanks again for taking a swing at it.
I accepted the answer I did because suggesting using the command line at least shows a understanding of my question and what I was looking for.
I know I am late to the game but I can confirm that tortoise git and getext also work fine with VSTS
I'd like to build a (ruby) script that interacts with a github wiki.
Gollum seems to want to manage a local working directory.
Is it possible to interact directly with a github wiki?
No. due to the distributed nature of Git, you interact by pushing new commits from a local repo.
Even the latest Octopress blog (using rake command to create new post) is base don the local clone, and a deploy process to GitHub.
Is it possible to have a project hosted on GitHub and Google Code?
I've been using Google Code for years, and recently started playing with GitHub. I like GitHub a lot, but there's also a long list of Google Code features I really miss.
Is it possible/feasible to host a single project on both? Can I use GitHub as the primary repository for my source, but have all revisions automatically sent over to a git repository on Google Code?
Yes, absolutely! Just add then commit then push to both repos! You can also add a remote in .git/config