Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

warpig's avatar
Level 12

clone repo to forge

i can't view my site/repo on the ip given to me by forge, all i see is the forge default page. i created a droplet on digitalocean and a new forge account from there i created a site and linked it to the repo on github but i still haven't done anything regarding the SSH keys, how can i configure this? i found this question: https://laracasts.com/discuss/channels/forge/forge-failed-to-clone-repo but it's not clear to me where am i supposed to get that ssh key. when i linked my github account to forge i received an email regarding some ssh, would this be it? thanks.

this is the script im using, as you can see i've already created a storage link, do i need to run npm everytime? and what else is needed to run here? again, thanks.

cd /home/forge/sickofmetal.net
git pull origin $FORGE_SITE_BRANCH

$FORGE_COMPOSER install --no-dev --no-interaction --prefer-dist --optimize-autoloader

( flock -w 10 9 || exit 1
    echo 'Restarting FPM...'; sudo -S service $FORGE_PHP_FPM reload ) 9>/tmp/fpmlock

# if [ -f artisan ]; then
#    $FORGE_PHP artisan migrate --force
# fi

# php artisan storage:link
npm install
npm run build

this is the latest log:

Tue Jun 20 18:09:23 UTC 2023
From github.com:eduardonwa/sickofmetal
 * branch            main       -> FETCH_HEAD
Already up to date.
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package league/uri-parser is abandoned, you should avoid using it. No replacement was suggested.
Package tgalopin/html-sanitizer is abandoned, you should avoid using it. Use symfony/html-sanitizer instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   INFO  Discovering packages.  

  akaunting/laravel-money ............................................... DONE
  blade-ui-kit/blade-heroicons .......................................... DONE
  blade-ui-kit/blade-icons .............................................. DONE
  filament/filament ..................................................... DONE
  filament/forms ........................................................ DONE
  filament/notifications ................................................ DONE
  filament/support ...................................................... DONE
  filament/tables ....................................................... DONE
  laravel/sanctum ....................................................... DONE
  laravel/tinker ........................................................ DONE
  livewire/livewire ..................................................... DONE
  nesbot/carbon ......................................................... DONE
  nunomaduro/termwind ................................................... DONE
  ryangjchandler/blade-capture-directive ................................ DONE
  spatie/laravel-permission ............................................. DONE

61 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Restarting FPM...

up to date, audited 113 packages in 590ms

20 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

> build
> vite build

vite v4.3.9 building for production...
transforming...
✓ 47 modules transformed.
rendering chunks...
computing gzip size...
public/build/manifest.json             0.26 kB │ gzip:  0.13 kB
public/build/assets/app-80cc679a.css  38.54 kB │ gzip:  6.92 kB
public/build/assets/app-6870bb4e.js   70.27 kB │ gzip: 26.21 kB
✓ built in 3.05s
0 likes
1 reply
warpig's avatar
Level 12

what am i missing? what else configuration is required? i have deployed new changes and can see them under "deployments". even got the ssl hooked up on forge as the green icon is apparent and active. went on and attached the "ssh deploy keys" i received when setting up, this goes to the repo on github, since the repo its private. it could be that i haven't configured digitalocean and namecheap appropiately, anyone using these 2 services? many thanks😀😀

Please or to participate in this conversation.