Hi all,
I tried to find a solution in the depths of this forum but wasn’t really successful. Unfortunately, I am somewhat of a novice when it comes to web hosting and servers, so please excuse any logical flaws in my explanation.
I’m trying to deploy a Kirby 3 project (based on the plainkit) on a web server, namely uberspace.
I have tried the following:
- Setting up GitHub actions to deploy the entirety directly when pushing to git
If anyone is interested that would be the workflow:
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rsync deployments
uses: burnett01/rsync-deployments@4.1
with:
switches: -avzr --delete
path: /
remote_path: /home/${{ secrets.UBERSPACE_USER }}/html/
remote_host: ${{ secrets.UBERSPACE_HOST }}
remote_user: ${{ secrets.UBERSPACE_USER }}
remote_key: ${{ secrets.DEPLOY_KEY_PRIVATE }}
-
The deployment itself seems to be set up correctly, I believe. However, this caused an internal server error 500 when trying to access the domain
-
I have then made sure to change the php version on my space to php 8.0.
-
I have also uncommented
RewriteBase /
-
After it was still not working (I believe I got this PHP error in my log at that point
PHP Warning: require(kirby/bootstrap.php): Failed to open stream: No such file or directory in
, I found in a thread here the following command:git submodule update --init --recursive
, which at least led to the page being loaded
However, neither images, nor subpages nor the panel would be accessible. I thought that maybe the media folder being pushed from git might be the issue, so
- I also tried deleting the media folder and letting Kirby create it from scratch on the server.
Unfortunately, this did not help either.
As I could not get it to work with the GitHub Deployment, I have tried just pushing the project from Local to Remote via SFTP, unfortunately though it results in very similar issues.
When I follow the composer-based instruction on uberspace to install Kirby from scratch, it works like a charm.
Do you guys have any ideas on how to deploy an existing (local or GitHub-based) Kirby 3 project (preferably on Uberspace)? Or should I just use a fresh install and overwrite the folders as needed? I don’t know, I would have loved to have an automated git workflow
This is not just because I have not bought the license yet, right?
Any help or suggestions would be much appreciated.
Thanks so much
Sacid
Edit: I got it to work by installing the plainkit via composer on uberspace and overwriting the assets, content and site folders via SFTP. Is this the easiest way to go?