Skip to content

Conversation

@pieterdd
Copy link
Contributor

@pieterdd pieterdd commented May 6, 2025

I had trouble getting the site up and running locally. It seems the issues were related to dated dependencies.

pieterdd added 2 commits May 6, 2025 22:15
- Update 5-year-old bundler version
- Specify some dependencies that have been extracted out of Ruby
- Update Liquid to compatible version
@hellcp
Copy link
Member

hellcp commented May 6, 2025

@tacerus we are still running under ruby 3.1 on the server side like in the Ci, right?

@pieterdd pieterdd force-pushed the update-dependencies branch from 063c77a to 5709803 Compare May 6, 2025 20:41
@pieterdd
Copy link
Contributor Author

pieterdd commented May 6, 2025

Are you building the site again on a server? I see that you've already got a GitHub Actions generating the static assets. If that's easier on server end, I could ensure the static assets are exposed as artifacts in the GitHub workflow so they can be downloaded and deployed as-is on any Apache. Then you don't need to couple the build process to a specific Ruby version that runs on the server.

Unrelated note: it looks like Rubygem's mirrors are currently unstable. I got SocketError: Failed to open TCP connection to mirror.rackspace.com:443 (getaddrinfo: Try again) in the build, so I'm trying to work around that.

@hellcp
Copy link
Member

hellcp commented May 6, 2025

Will be necessary to make it work with both versions then if you want to update the dependencies

@pieterdd pieterdd force-pushed the update-dependencies branch 3 times, most recently from d31818f to 3b586d7 Compare May 7, 2025 05:21
@pieterdd pieterdd force-pushed the update-dependencies branch from 3b586d7 to 621db43 Compare May 7, 2025 05:43
@pieterdd
Copy link
Contributor Author

pieterdd commented May 7, 2025

I've integrated the generation of the website assets into a GitHub action and made sure it uses a recent Ruby version. There are two ways to get the generated assets:

  • Open the 'Generate website' status check, expand 'Save artifacts', click the link
  • Run curl https://api.github.com/repos/opensuse/get-o-o/actions/artifacts?name=website | jq -r '.artifacts | map(select(.workflow_run.head_branch == "main"))[0].archive_download_url' on your server to get the URL of the ZIP file containing the assets. Note that this won't work yet because there's no build on main yet. Replace main with update-dependencies if you want to see it in action. This command requires jq, a JSON parser.

Would this work for you?

@hellcp
Copy link
Member

hellcp commented May 7, 2025

Updated the main branch with support for both ruby 3.1 and 3.4 (tested both locally) 285346c

@hellcp hellcp closed this May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants