Replies: 9 comments 5 replies
-
This might be a bug. PocketHost is supposed to just be proxying requests to the PocketBase instance, but perhaps something is not working right. |
Beta Was this translation helpful? Give feedback.
-
@burggraf I just ran a test at https://receive-empty.pockethost.io and it appears content types are being served correctly. <!-- index.html -->
<html>
<head>
<script src="./test.js"></script>
</head>
<body>
Hello world
</body>
</html> // test.js
alert('hi') |
Beta Was this translation helpful? Give feedback.
-
Here's the generated Sveltekit code for index.html. See anything that would cause a problem here?
|
Beta Was this translation helpful? Give feedback.
-
Yes, I just was able to reproduce the same thing. The error you are getting means that the file is not found. PocketBase serves static content in SSG mode, so you'll never get a 404 because it'll return I spotted an issue with the FTP server where in some cases files were failing to upload due to Cloudflare rate limiting. I fixed it by making the FTP server connect directly to the mothership PocketBase instance using a local address rather than going through Cloudflare to connect. This took care of the rate limiting errors and now everything is working for me. |
Beta Was this translation helpful? Give feedback.
-
Please try uploading your files again. |
Beta Was this translation helpful? Give feedback.
-
It's working now! I've been using FileZilla to upload since the command-line ftp hasn't been working due to an expired certificate. Thanks for the quick resolution. Very cool. |
Beta Was this translation helpful? Give feedback.
-
I'm using macos 14.1.1 command-line ftp under bash (ftp (GNU inetutils) 2.4). I always get the following (even if the password is correct):
I'm assuming this is due to the expired cert, but it could be something else. |
Beta Was this translation helpful? Give feedback.
-
Ok, oddly enough the ftp client under Ubuntu Server 23.04 works fine. |
Beta Was this translation helpful? Give feedback.
-
Ok, this works: |
Beta Was this translation helpful? Give feedback.
-
I've compiled my sveltekit app with
npm run build
and I can deploy the app to places like Cloudflare or Vercel, but I'd like to host the application by copying it topb_public
. It's all static html, css, and js so it should work just fine. But alas, it doesn't work, I just get a bunch of errors such as this:Can this be solved on Pockethost?
Note this works fine when running Pocketbase on localhost and navigating to
http://127.0.0.1/8090
.Beta Was this translation helpful? Give feedback.
All reactions