Download the PHP package webid/radis without Composer
On this page you can find all versions of the php package webid/radis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package radis
Radis - Review Apps Deployed In Seconds đ
Prerequisites
- PHP 7.4 or greater
Installation
Require this package with composer. It is recommended to only require the package for development.
Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
Publish the package configuration and stubs with the publish command:
Configurations
1. Configuration
You need to start by configuring your environment variables to access forge in config/radis.php
First of all, create a new token here: https://forge.laravel.com/user/profile#/api and paste the generated copy in
the .env
file:
lets_encrypt_type
and lets_encrypt_api_key
are not required, but it's needed for auto HTTPS. For digitalocean
example (https://docs.digitalocean.com/reference/api/create-personal-access-token/):
Wildcard certificates
Due to Let's Encrypt limitations about making too many certificates on a registered domain (50 per week), if a wildcard certificate is set up on the parent site on Forge, it will be automatically used for the review apps instead of creating a new specific one.
2. .env
stub
After that, you need to adapt the desired .env file for your review app by modifying the stub stubs/env.stub
Don't change the constants starting with STUB_
, they will be automatically replaced according to your configuration,
or the parameters given to artisan commands.
3. Deploy script stub
Finally, you need to adapt the forge deployment script according to your project in the stub stubs/deployScript.stub
Usage
Create a review app
â ī¸ If a review app already exists with this name, it will be destroyed and recreated
Update an existing review app
This will only launch the deploy script
Destroy a review app
â ī¸ This will remove both database and associated user database
Update the .env
file
Update the deploy script
âšī¸ It updates the script without running it