Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
These changes include a template for setting up pull request previews.
After you adjust this configuration file, Ergomake will create a preview environment whenever developers create a pull-request. Once the preview environment is up, Ergomake will post a link to access it.
How it works
The
docker-compose.yaml
file within.ergomake
contains the configurations necessary to spin up an environment. Whenever this file exists in a pull-request, we'll use it to spin up a preview.Please update this
docker-compose.yaml
file by pushing more code to this branch (ergomake
). Once it works fine, you should have a working preview link.Here are the most common actions you may need to take:
Dockerfile
to build your application and add it todocker-compose.yaml
.docker-compose.yaml
.For more information, please see our documentation.
Tips for writing your compose file
localhost
. To expose port 3000, for example, you can use3000:3000
.depends_on
,volumes
, andnetworks
.Where to go from here
In our platform, you can configure branches to be permanently deployed. That way, you can access that branch at any time, regardless of whether there's a PR with its contents. Permanent branches are useful for permanent staging, QA, or development environments.
💻 GitHub | 🌐 Discord | 🐦 Twitter