Deploying a branch

Deploying a branch can be very useful if you want to apply a small fix to the currently deployed version in the Production system. 

Please note: This doesn't work on Windows and is not currently supported with Frontastic Machines. We're working on a solution as soon as possible but you'll only be able to do this within your container.

However, this isn't built into the Deployment area in the Frontastic Editor or our Continuous Integration system but you can still deploy a certain branch on staging and production.

To deploy a branch with JavaScript or CSS changes, you must build a release yourself which you can do by following the steps below. If you only have changes in the PHP stack, you can skip step one (preparing a build). 

1
Prepare a new build inside your container by executing the below command:
ant package

Usually, files are generated that are unstaged and might not be committed if they're not added during this step.

2
Create a Git changeset with freshly built assets by executing the below command on the host (your computer):
git add . && git commit -m 'Built assets for release'
3
Create and publish a Git tag for the current HEAD by using the below command. The deployable tags must have the following format: /^\d{4}\.\d{2}\.\d{2}\.\d{2}\.\d{2}$/, for example,  1981.04.15.08.16. We generally use the current date for the release tags.
git tag `date '+%Y.%m.%d.%H.%M'` && git push --tags

This is the most important step and must be executed before deploying anything.

4
Deploy this tag to the staging or production system by using the deploy curl command found in the Deployment area in the Frontastic Editor. This tag will not be listed in the drop-downs, so you have to use the curl command or the SlackBot if it's active for you.

‹ Back to article list

Next article ›

Go live preparation

Still need help? Contact us Contact us