Skip to content

Commit

Permalink
use git push gigalixir so the main branch will work too.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseshieh committed Oct 26, 2020
1 parent faa41e7 commit 6036b65
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/source/concepts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Concepts
Life of a Deploy
----------------

When you run :bash:`git push gigalixir master`, our git server receives your source code and kicks off a build using a pre-receive hook. We build your app in an isolated docker container which ultimately produces a slug which we store for later. The buildpacks used are defined in your :bash:`.buildpacks` file.
When you run :bash:`git push gigalixir`, our git server receives your source code and kicks off a build using a pre-receive hook. We build your app in an isolated docker container which ultimately produces a slug which we store for later. The buildpacks used are defined in your :bash:`.buildpacks` file.

By default, the buildpacks we use include

Expand Down Expand Up @@ -108,7 +108,7 @@ There is an extra flag you can pass to deploy by hot upgrade instead of a restar

.. code-block:: bash
git -c http.extraheader="GIGALIXIR-HOT: true" push gigalixir master
git -c http.extraheader="GIGALIXIR-HOT: true" push gigalixir
A hot upgrade follows the same steps as a regular deploy, except for a few differences. In order for distillery to build an upgrade, it needs access to your old app so we download it and make it available in the build container.

Expand Down
10 changes: 5 additions & 5 deletions docs/source/deploy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Deploying an app is done using a git push, the same way you would push code to g

.. code-block:: bash
git push gigalixir master
git push gigalixir
.. _`cleaning your build cache`:

Expand All @@ -19,7 +19,7 @@ There is an extra flag you can pass to clean your cache before building in case

.. code-block:: bash
git -c http.extraheader="GIGALIXIR-CLEAN: true" push gigalixir master
git -c http.extraheader="GIGALIXIR-CLEAN: true" push gigalixir
.. _`zero-downtime`:

Expand Down Expand Up @@ -183,7 +183,7 @@ to work. For information on how to install the latest version of git on Ubuntu,

.. code-block:: bash
git -c http.extraheader="GIGALIXIR-HOT: true" push gigalixir master
git -c http.extraheader="GIGALIXIR-HOT: true" push gigalixir
.. _`rollback`:

Expand Down Expand Up @@ -232,7 +232,7 @@ If you just want to push a subtree, try

.. code-block:: bash
git subtree push --prefix my-sub-folder gigalixir master
git subtree push --prefix my-sub-folder gigalixir
If you want to push the entire repo, but run the app from a subfolder, it becomes a bit trickier, but this pull request should help you.
https://github.com/jesseshieh/nonroot/pull/1/files
Expand Down Expand Up @@ -312,7 +312,7 @@ How to deploy a Ruby app
git clone https://github.com/heroku/ruby-getting-started.git
cd ruby-getting-started
APP=$(gigalixir create)
git push gigalixir master
git push gigalixir
curl https://$APP.gigalixirapp.com/
Does Gigalixir have any web hooks?
Expand Down
2 changes: 1 addition & 1 deletion docs/source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Try force pushing with

.. code-block:: bash
git push -f gigalixir master
git push -f gigalixir
.. _`elixir homepage`: http://elixir-lang.org/
.. _`phoenix homepage`: http://www.phoenixframework.org/
Expand Down
2 changes: 1 addition & 1 deletion docs/source/getting-started-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Finally, build and deploy.

.. code-block:: bash
git push gigalixir master
git push gigalixir
Wait a minute or two for the app to pass health checks. You can check the status by running

Expand Down
2 changes: 1 addition & 1 deletion docs/source/modify-app/distillery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,6 @@ If you want to cluster nodes, you should install libcluster. For more informatio
Set Up Hot Upgrades with Git v2.9.0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

To run hot upgrades, you send an extra http header when running :bash:`git push gigalixir master`. Extra HTTP headers are only supported in git 2.9.0 and above so make sure you upgrade if needed. For information on how to install the latest version of git on Ubuntu, see `this stackoverflow question <http://stackoverflow.com/questions/19109542/installing-latest-version-of-git-in-ubuntu>`_. For information on running hot upgrades, see :ref:`hot-upgrade` and :ref:`life-of-a-hot-upgrade`.
To run hot upgrades, you send an extra http header when running :bash:`git push gigalixir`. Extra HTTP headers are only supported in git 2.9.0 and above so make sure you upgrade if needed. For information on how to install the latest version of git on Ubuntu, see `this stackoverflow question <http://stackoverflow.com/questions/19109542/installing-latest-version-of-git-in-ubuntu>`_. For information on running hot upgrades, see :ref:`hot-upgrade` and :ref:`life-of-a-hot-upgrade`.


4 changes: 2 additions & 2 deletions docs/source/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ A good first thing to try when you get a `git push` error is :ref:`cleaning your

- My deploy succeeded, but nothing happened.

- When :bash:`git push gigalixir master` succeeds, it means your code was compiled and built without any problems, but there can still be problems during runtime. Other platforms will just let your app fail, but gigalixir performs tcp health checks on port 4000 on your new release before terminating the old release. So if your new release is failing health checks, it can appear as if nothing is happening because in a sense, nothing is. Check :bash:`gigalixir logs` for any startup errors.
- When :bash:`git push gigalixir` succeeds, it means your code was compiled and built without any problems, but there can still be problems during runtime. Other platforms will just let your app fail, but gigalixir performs tcp health checks on port 4000 on your new release before terminating the old release. So if your new release is failing health checks, it can appear as if nothing is happening because in a sense, nothing is. Check :bash:`gigalixir logs` for any startup errors.

- My app takes a long time to startup.

Expand All @@ -224,7 +224,7 @@ A good first thing to try when you get a `git push` error is :ref:`cleaning your

- run :bash:`chmod og-rwx ~/.netrc`

- :bash:`git push gigalixir master` asks for my password
- :bash:`git push gigalixir` asks for my password

- First try running :bash:`gigalixir login` and try again. If that doesn't work, try resetting your git remote by running :bash:`gigalixir git:remote $APP` and trying again.

Expand Down

0 comments on commit 6036b65

Please sign in to comment.