Skip to content

Commit

Permalink
Merge pull request #77 from fhict-skilltree/feature/59
Browse files Browse the repository at this point in the history
feat: set APP_URL in production deployment
  • Loading branch information
cyrildewit authored Jan 15, 2024
2 parents 68012fe + b3f35d1 commit 1bb6dd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
IMAGE_TAG: ${{ inputs.IMAGE_TAG }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ github.actor }}
APP_URL: ${{ secrets.APP_URL }}
PROD_APP_KEY: ${{ secrets.PROD_APP_KEY }}
DB_CONNECTION: ${{ secrets.DB_CONNECTION }}
DB_HOST: ${{ secrets.DB_HOST }}
Expand All @@ -31,7 +32,7 @@ jobs:
key: ${{ secrets.DOCKER_PROD_PRIVATE_KEY }}
password: ${{ secrets.DOCKER_PROD_PASSWORD }}
port: 22
envs: IMAGE_TAG,GITHUB_TOKEN,GITHUB_ACTOR,PROD_APP_KEY,DB_CONNECTION,DB_HOST,MYSQL_DATABASE,MYSQL_USER,MYSQL_PASSWORD,MYSQL_ROOT_PASSWORD
envs: IMAGE_TAG,GITHUB_TOKEN,GITHUB_ACTOR,APP_URL,PROD_APP_KEY,DB_CONNECTION,DB_HOST,MYSQL_DATABASE,MYSQL_USER,MYSQL_PASSWORD,MYSQL_ROOT_PASSWORD
script: |
echo $GITHUB_TOKEN | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
cd /home/admin/deployments/deploy-backend-application
Expand Down
2 changes: 1 addition & 1 deletion app/App/Shared/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
namespace App\Shared\Providers;

use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Contracts\Config\Repository as ConfigRepository;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\RateLimiter;
use OpenApi\Attributes as OA;
use Illuminate\Contracts\Config\Repository as ConfigRepository;

#[OA\Info(
version: 'v1.0',
Expand Down

0 comments on commit 1bb6dd6

Please sign in to comment.