Integrating WunderPreview in your development process is a little like implementing a CI/CD pipeline. But compared to typical CI/CD setup, you do not need to create YAML files for WunderPreview, so it is way easier.
Everyone that has set up a CI/CD pipeline knows that this is a really time consuming and boring endeavor. Typically it works like this:
One loop can take from a minute to half an hour (or even more?) depending on your setup. Basically it is 5 seconds changing configuration and then waiting minutes until you see the result.
This is really wasting a lot of the developers will to live.
If you setup WunderPreview for the first time you have to make sure, that you set the right configuration parameters or your existing Dockerfile will not build and start in WunderPreview.
In a way it is the same loop:
To speed things up and make integration easier, we implemented a really easy (and we think nice) solution to this problem:
docker runcommands that build/run your project exactly like it is built/run in WunderPreview.
In the log viewer of your preview, we added a button called "Troubleshoot":
It opens a modal window showing you the commands to build and run your container on your local machine just like WunderPreview builds and runs it:
It is easy like that. This really speeds up the integration because of the following:
Debugging problems this way makes the integration process way faster and not so soul crushing.
IMPORTANT: When you use a WunderPreview database, you can not test the connection to this database from your local machine. We take security very seriously and therefore only allow the previews running in your WunderPreview account to connect to your database. (But you can swap out the database connection parameters on your local machine with connection parameters to a local database)
Do you have any questions or remarks? Just send us an email to email@example.com. We are happy to hear from you!