skip to main content

SSH Setup

Checklist to set up a Project via SSH for Kirby and Statamic Projects.

Setup SSH Key

  • Connect to Server:

ssh USER@DOMAIN.TLD
  • Generate key (no passphrase):

ssh-keygen -t rsa -b 4096 -C "deploy@DOMAIN.TLD"
  • read key with:

more ~/.ssh/id_rsa.pub
  • Save the new key on Vitamin2 (vitamin2):
    Repo → Settings → Access keys (id_rsa.pub@DOMAIN.TLD)

  • check connection with:

ssh -T git@bitbucket.org

Install composer

  • if not already installed, install composer with curl:

cd ~ curl -sS https://getcomposer.org/installer | php -- --install-dir=bin mv ~/bin/composer.phar ~/bin/composer chmod u+x ~/bin/composer

Setup Project

 

  • execute composer install

    • On Metanet execute with necessary php Version like this:
      /opt/php82/bin/php /bin/composer install

    • On Hostpoint you can find the path here:
      Pfade, Verzeichnisse, System

    • On exigo it is the same PHP version than set for the hosting.

  • check url if Kirby/Statamic is active

 

Statamic

Copy

  • content

  • users

  • storage/app/public (paths depending on config/filesystems.php)
    --> without overwriting <--

cp .env.example .env # set data like APP_URL / APP_DEBUG = false
php artisan key:generate
php artisan storage:link # if you are on Metanet or Infomaniak do this instead: # cd public # ln -s ../storage/app/public storage