Skip to content

How to deal with a public/js/file.js #1

@isslerman

Description

@isslerman

Hi TenacityDev, thanks for the Repo, is a good one.

I have one question here, how to deal if you have a file that is public/js/file.js ?

After update de dev local file and upload to git, download on server and rebuild the app container, the volume public is not updated with the file and if you run the npm run build, the .js file is not updated to the app image.

One approach is bind the public and have the volume only for the storage.

Or there is some around that I am not seeing here?

Tks.

Ow i have updated the wait_for_db() too.

wait_for_db() {
    echo "Waiting for DB to be ready..."

    while true; do
        output=$(./artisan migrate:status 2>&1)
        echo "$output" | grep -q -i -E "migration table not found|migration name"

        if [ $? -eq 0 ]; then
            echo "DB is ready!"
            break
        fi

        echo "Still waiting for DB..."
        sleep 2
    done
}

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