Go to file
songtianlun b05cf10017 refactor: simplify city weather generation logic
- Introduced constants for configuration settings such as generation interval, maximum duration, and sleep duration.
- Updated the `perform` method to utilize these constants for better readability and maintainability.
- Refactored the `perform` method in `GenerateWeatherArtWorker` to improve flow and error handling by creating separate methods for fetching weather data, generating prompts, images, and handling database transactions.
- Cleaned up city seeding data by removing unnecessary fields while maintaining required functionality.

These changes improve the overall readability of the code and make it easier to adjust the behavior of the workers in the future without digging through the logic.
2025-01-24 00:14:29 +08:00
.github chore: update Docker workflow configuration 2025-01-23 09:36:37 +08:00
.kamal init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
app refactor: simplify city weather generation logic 2025-01-24 00:14:29 +08:00
bin init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
config fix: update default host in sitemap generator and refresh sitemap on worker 2025-01-23 19:40:08 +08:00
db refactor: simplify city weather generation logic 2025-01-24 00:14:29 +08:00
lib/tasks init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
log init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
public chore: update robots.txt for better indexing 2025-01-23 19:03:00 +08:00
script init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
storage init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
test feat: add pagination to weather arts gallery 2025-01-23 14:10:13 +08:00
tmp init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
vendor init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
.dockerignore init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
.gitattributes init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
.gitignore fix: update default host in sitemap generator and refresh sitemap on worker 2025-01-23 19:40:08 +08:00
.node-version init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
.rubocop.yml init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
.ruby-version init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
compose.yaml chore: update docker compose file 2025-01-23 17:44:03 +08:00
config.ru init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
Dockerfile fix: update ownership permissions in Dockerfile 2025-01-23 19:53:50 +08:00
Gemfile style: format code for consistency 2025-01-23 19:03:14 +08:00
Gemfile.lock feat: add SEO meta tags and sitemap generation 2025-01-23 19:02:52 +08:00
package.json chore: clean up code style and unused fixtures 2025-01-20 18:08:55 +08:00
Procfile.dev init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
Rakefile init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
README.md init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
tailwind.config.js feat: add font styling and enhance city views 2025-01-20 18:02:28 +08:00
yarn.lock feat: add font styling and enhance city views 2025-01-20 18:02:28 +08:00

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...