/**
* Validate some data.
*
* @param string|array $fields
* @param string|array $rules
* @return bool
*/
function validate($fields, $rules)
{
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
definitions: | |
steps: | |
- step: &build | |
name: Build microservices jar | |
script: | |
- mvn package | |
artifacts: | |
- target/** | |
- step: &build-react | |
name: Build React app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@setup | |
require __DIR__.'/vendor/autoload.php'; | |
(new \Dotenv\Dotenv(__DIR__, '.env'))->load(); | |
$appName = "my-app.com"; | |
$repository = "spatie/{$appName}"; | |
$baseDir = "/home/forge/{$appName}"; | |
$releasesDir = "{$baseDir}/releases"; | |
$currentDir = "{$baseDir}/current"; | |
$newReleaseName = date('Ymd-His'); |