jpt/trifold
1
33
Fork
You've already forked trifold
1

Starting from manual install #9

Closed
opened 2025年12月28日 00:56:56 +01:00 by tyee · 7 comments

I manually set up Bunny last night and it's working good but now I want to use Trifold for future uploads. At what point in your instructions do I start? I don't want Trifold changing anything that is already set up.

I manually set up Bunny last night and it's working good but now I want to use Trifold for future uploads. At what point in your instructions do I start? I don't want Trifold changing anything that is already set up.
Author
Copy link

Update - Having some problems getting trifold.toml written. I'm on Windows. uv is running trifold great. See image link below for the error. I started from the trifold beginning instructions running "uvx trifold init". It's when I get to the local folder. Trifold can't seem to find my "out" folder, which is in the folder I ran "uvx trifold init" from.

https://i.imgur.com/AQ40Gl8.jpeg

Update - Having some problems getting trifold.toml written. I'm on Windows. uv is running trifold great. See image link below for the error. I started from the trifold beginning instructions running "uvx trifold init". It's when I get to the local folder. Trifold can't seem to find my "out" folder, which is in the folder I ran "uvx trifold init" from. https://i.imgur.com/AQ40Gl8.jpeg
Owner
Copy link

trifold init will try to create the buckets, I think you'll want to just create a toml manually and run publish

imgur is having trouble, so apologies if I am missing some important context, but I think this will work (assuming trifold.toml is in a directory where there is a subdirectory named out/ that you want to publish from.

provider = "bunny"
remote_path = ""
local_path = "out"
ignore = []
remote_ignore = []
[bunny]
storage_zone = "your-bucket-name"

Thanks for pioneering the publish-only workflow :) If we figure this out/iron out any kinks I'll document it.

`trifold init` will try to create the buckets, I think you'll want to just create a toml manually and run `publish` imgur is having trouble, so apologies if I am missing some important context, but I think this will work (assuming trifold.toml is in a directory where there is a subdirectory named `out/` that you want to publish from. ``` provider = "bunny" remote_path = "" local_path = "out" ignore = [] remote_ignore = [] [bunny] storage_zone = "your-bucket-name" ``` Thanks for pioneering the publish-only workflow :) If we figure this out/iron out any kinks I'll document it.
Author
Copy link

I'll give it a try, thanks.

I'll give it a try, thanks.
Author
Copy link

OK, it looks like trifold is not seeing my "out" folder. After running "uvx trifold publish", running from the folder that has the toml file and my "out" folder, I get this - (note I manually uploaded a couple of days ago the 114 files)

g:\trifold\uvx trifold publish
0 only_local | 114 only_remote | 0 diff | 2 same

uploaded: 0
would delete: 114
using custom 404 page: 404.html
cache purged! mysite.b-cdn.net

Or am I reading this wrong. It says 2 same? In my "out" folder I have an index.html file and a css folder with style.css in it. Is that the 2 that are the same? Well, yes I think. I added more files to upload and it looks like it's working.

OK, it looks like trifold is not seeing my "out" folder. After running "uvx trifold publish", running from the folder that has the toml file and my "out" folder, I get this - (note I manually uploaded a couple of days ago the 114 files) g:\trifold\uvx trifold publish 0 only_local | 114 only_remote | 0 diff | 2 same uploaded: 0 would delete: 114 using custom 404 page: 404.html cache purged! mysite.b-cdn.net Or am I reading this wrong. It says 2 same? In my "out" folder I have an index.html file and a css folder with style.css in it. Is that the 2 that are the same? Well, yes I think. I added more files to upload and it looks like it's working.
Owner
Copy link

If you run with -vv you'll get a list of what it wants to delete that might shed some insight into what's going on. If there are files uploaded that you want to keep you could add a pattern to remote_ignore

If you run with `-vv` you'll get a list of what it wants to delete that might shed some insight into what's going on. If there are files uploaded that you want to keep you could add a pattern to remote_ignore
Owner
Copy link

Did you manage to get this working? I'm curious how it resolved

Did you manage to get this working? I'm curious how it resolved
Author
Copy link

Yes, it's working fine. I was just not reading it right. Yesterday another issue arose but it's solved again. I will post over there at the new issue.

Yes, it's working fine. I was just not reading it right. Yesterday another issue arose but it's solved again. I will post over there at the new issue.
Sign in to join this conversation.
No Branch/Tag specified
main
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.2.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jpt/trifold#9
Reference in a new issue
jpt/trifold
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?