SSH Setup
Checklist to set up a Project via SSH for Kirby and Statamic Projects.
Setup SSH Key
Connect to Server:
ssh USER@DOMAIN.TLDGenerate key (no passphrase):
ssh-keygen -t rsa -b 4096 -C "deploy@DOMAIN.TLD"read key with:
more ~/.ssh/id_rsa.pubSave the new key on Vitamin2 (vitamin2):
Repo → Settings → Access keys (id_rsa.pub@DOMAIN.TLD)check connection with:
ssh -T git@bitbucket.orgInstall 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/composerSetup Project
exigo case (-> not possible to change webroot):
create new hosting
clone Project via git on same level as home directory
remove htdocs (empty) folder
rm -rf htdocs
create symlink
ln -s APP_FOLDER htdocs
cyon case
Install Composer Composer installieren | cyon-Support
Set shell php version PHP-Standardversion für die Kommandozeile festlegen | cyon-Support
Also add .htaccess in public folder: PHP-Version eines Verzeichnisses ändern | cyon-Support
Infomaniak
execute composer install
On Metanet execute with necessary php Version like this:
/opt/php82/bin/php /bin/composer installOn Hostpoint you can find the path here:
Pfade, Verzeichnisse, SystemOn 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 = falsephp artisan key:generatephp artisan storage:link # if you are on Metanet or Infomaniak do this instead: # cd public # ln -s ../storage/app/public storage