* Add default preview images * Update application.rb * Adds app assets path in API mode * Cleans up file * Create assets.rb An initializer for font assets (for image generation) * Updates to Canvas and Coordinator * Update parties_controller.rb * Adds retry header if generation is still in progress * Streams S3 content instead of redirecting to prevent 302 * Update coordinator.rbs * Create previews.rake A rake task for generating images offline * Add commands to build phase
32 lines
619 B
TOML
32 lines
619 B
TOML
[phases.setup]
|
|
nixPkgs = [
|
|
"imagemagick",
|
|
# For PDF/PS operations
|
|
"ghostscript",
|
|
# For gem compilation
|
|
"pkgconfig",
|
|
# ImageMagick C library
|
|
"libmagickwand",
|
|
# Font configuration
|
|
"fontconfig",
|
|
# A good fallback font
|
|
"dejavu_fonts",
|
|
# Arial-compatible fonts
|
|
"liberation_ttf",
|
|
# Font rendering
|
|
"freetype"
|
|
]
|
|
|
|
[phases.install]
|
|
dependsOn = ["setup"]
|
|
|
|
[phases.build]
|
|
dependsOn = ["install"]
|
|
cmds = [
|
|
"mkdir -p public/assets/fonts",
|
|
"cp -r app/assets/fonts/* public/assets/fonts/",
|
|
"bundle exec rake assets:precompile"
|
|
]
|
|
|
|
[start]
|
|
cmd = "bin/rails server"
|