Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Deployment Error fly.io #115

@sirsimonson

Description

@sirsimonson

fly.io deployment fails with the following error at the line in dockerfile
RUN SECRET_KEY_BASE=DUMMY ./bin/rails assets:precompile

 => [build 4/6] COPY --link . .                                                                                                                                                                                                                          0.0s 
 => [build 5/6] RUN bundle exec bootsnap precompile app/ lib/                                                                                                                                                                                            0.8s 
 => ERROR [build 6/6] RUN SECRET_KEY_BASE=DUMMY ./bin/rails assets:precompile                                                                                                                                                                            0.3s 
------
 > [build 6/6] RUN SECRET_KEY_BASE=DUMMY ./bin/rails assets:precompile:
#0 0.270 /usr/bin/env: ‘ruby\r’: No such file or directory
#0 0.270 /usr/bin/env: use -[v]S to pass options in shebang lines
------
Error: failed to fetch an image or build from source: error building: failed to solve: executor failed running [/bin/sh -c SECRET_KEY_BASE=DUMMY ./bin/rails assets:precompile]: exit code: 127

I'm not into ruby and just wanted to deploy this out of the box for a friend. Please advise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions