Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpisa committed Jun 15, 2023
1 parent 4a11402 commit 100ffa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Actions/DeployPullRequestAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DeployPullRequestAction
public function run(Server $server, string $repository, string|int $number): ?Site
{
$pullRequest = Http::github()->get('repos/' . config('services.github.owner') . '/' . $repository . '/pulls/' . $number)->json();
$url = $pullRequest['id'] . '.dev.' . config('services.forge.domain');
$url = $repository . $pullRequest['id'] . config('services.forge.domain');

if ($site = $server->site($url)) {
return $site->deploySite(false);
Expand Down
3 changes: 2 additions & 1 deletion app/Support/InitialDeployment.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class InitialDeployment

public function __construct(
private string $domain,
string $database,
private string $database,
private string $repository,
private string $branch,
) {
Expand Down Expand Up @@ -78,6 +78,7 @@ public function run(): ?Site
'domain' => $this->domain,
'project_type' => 'php',
'nginx_template' => 2972,
'database' => $this->database,
]);

// Install repository
Expand Down

0 comments on commit 100ffa6

Please sign in to comment.