Skip to content

Tailwind CSS works locally but not on Railway.app #7

@nuttapongnextzy

Description

@nuttapongnextzy

When I add styles.tw.css to the web folder and use the railway up command to deploy to Railway.app, the following error appears:

[BUILDER] [ERROR] PathNotFoundException: Cannot open file, path = '/tmp/scratch_spaceEEYPPU/web/styles.css' (OS Error: No such file or directory, errno = 2)

When I inspect the browser's Network tab, both styles.css and all images in the images folder cannot be found. However, when I remove styles.tw.css, the images in the images folder load correctly.

Everything works fine when running the project locally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions