import os

os.chdir(os.path.dirname(os.path.abspath(__file__)))

os.system("""
    docker-compose exec main sh -c "\
        cd /var/www && \
        php artisan migrate --force && \
        php artisan ide-helper:generate && \
        php artisan ide-helper:meta && \
        php artisan ide-helper:models -N --dir="modules" && \
        php artisan queue:restart && \
        ./vendor/tightenco/tlint/bin/tlint \
    "
""")
