Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add FAQ about pushing to a new application #418

Merged
merged 2 commits into from Mar 7, 2017
Merged

Conversation

shaunmulligan
Copy link
Contributor

@shaunmulligan shaunmulligan commented Feb 3, 2017

closes #317

@@ -26,6 +27,9 @@ title: FAQs
##### Can I use multiple containers?
We are planning, and committed, to adding support for having multiple apps/containers running on a device. While the work towards multiple apps is in progress, as an interim solution, we do however have a few users running [multiple containers within an app via docker-compose](https://resin.io/blog/multi-container-with-docker-compose-on-resin-io/) and [have done work with kubernetes](https://resin.io/blog/our-first-experiments-with-multi-container-apps/) in the same fashion.

##### How do I push a new git repo to an Application?
If you have pushed a repository called `project-A` to your application (called `myapp`) and at a later stage you would like to push a new project called `project-B`, you can do this by adding the application remote (`git remote add resin joesoap@git.resin.io:joesoap/myapp.git`) to `project-B`'s local repository. You can then easily push `project-B` to `myapp` by just doing `git push resin master -f`. The extra `-f` on the command forces the push and resets the git history on the git remote on resin.io's backend. You should now have `project-B` running on all the devices in the `myapp` fleet.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would add a line that after this one should normally not use -f anymore and do the regular pushes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above, and maybe link for "more details on "force push" at https://git-scm.com/docs/git-push#git-push--f

@@ -26,6 +27,9 @@ title: FAQs
##### Can I use multiple containers?
We are planning, and committed, to adding support for having multiple apps/containers running on a device. While the work towards multiple apps is in progress, as an interim solution, we do however have a few users running [multiple containers within an app via docker-compose](https://resin.io/blog/multi-container-with-docker-compose-on-resin-io/) and [have done work with kubernetes](https://resin.io/blog/our-first-experiments-with-multi-container-apps/) in the same fashion.

##### How do I push a new git repo to an Application?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capitalization of "application" maybe better lowercase??

@@ -26,6 +27,9 @@ title: FAQs
##### Can I use multiple containers?
We are planning, and committed, to adding support for having multiple apps/containers running on a device. While the work towards multiple apps is in progress, as an interim solution, we do however have a few users running [multiple containers within an app via docker-compose](https://resin.io/blog/multi-container-with-docker-compose-on-resin-io/) and [have done work with kubernetes](https://resin.io/blog/our-first-experiments-with-multi-container-apps/) in the same fashion.

##### How do I push a new git repo to an Application?
If you have pushed a repository called `project-A` to your application (called `myapp`) and at a later stage you would like to push a new project called `project-B`, you can do this by adding the application remote (`git remote add resin joesoap@git.resin.io:joesoap/myapp.git`) to `project-B`'s local repository. You can then easily push `project-B` to `myapp` by just doing `git push resin master -f`. The extra `-f` on the command forces the push and resets the git history on the git remote on resin.io's backend. You should now have `project-B` running on all the devices in the `myapp` fleet.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above, and maybe link for "more details on "force push" at https://git-scm.com/docs/git-push#git-push--f

@shaunmulligan shaunmulligan merged commit db37251 into master Mar 7, 2017
@sradevski sradevski deleted the issue-317 branch March 13, 2019 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FAQ: How do I push a different branch to resin.io
3 participants