SamKirkland / FTP-Deploy-Action

Deploys a GitHub project to a FTP server using GitHub actions
MIT License
3.77k stars 371 forks source link

FTP Deply doesn't work on Master branch #449

Closed sehangel closed 6 months ago

sehangel commented 6 months ago

was working all fine until I move the production branch to a new domain.

Logs show successful deploy but actually in the production server nothing happens

Run SamKirkland/FTP-Deploy-Action@v4.3.5 with: server: username: password: *** protocol: ftps port: 21

πŸš€ Thanks for using ftp-deploy. Let's deploy some stuff!

If you found this project helpful, please support it by giving it a ⭐ on Github --> https://github.com/SamKirkland/FTP-Deploy-Action or add a badge 🏷️ to your projects readme --> https://github.com/SamKirkland/FTP-Deploy-Action#badge

Last published on πŸ“… Saturday, March 30, 2024 at 12:59 PM

Local Files: 77 Server Files: 77

Calculating differences between client & server

πŸ” File replace: includes/hooks/redirectlogout.php βš–οΈ File content is the same, doing nothing: includes/hooks/_deleteexpireddotma.php βš–οΈ File content is the same, doing nothing: includes/hooks/_deleteexpiredmadomains.php βš–οΈ File content is the same, doing nothing: includes/hooks/_enablednsafterregister.php βš–οΈ File content is the same, doing nothing: includes/hooks/_enablednsaftertransfer.php βš–οΈ File content is the same, doing nothing: includes/hooks/_verify_pendingcreate_ma_after_registration.php βš–οΈ File content is the same, doing nothing: includes/hooks/deletedotmapassedredemptionperiod.php βš–οΈ File content is the same, doing nothing: includes/hooks/googleadsconversion.php βš–οΈ File content is the same, doing nothing: includes/hooks/googleadsscriptinhead.php βš–οΈ File content is the same, doing nothing: includes/hooks/menu.php βš–οΈ File content is the same, doing nothing: includes/hooks/removewhmcsbranding.php βš–οΈ File content is the same, doing nothing: includes/hooks/runcron.php βš–οΈ File content is the same, doing nothing: modules/gateways/callback/payzone.php βš–οΈ File content is the same, doing nothing: modules/gateways/payzone.php βš–οΈ File content is the same, doing nothing: modules/gateways/payzone/Connect2PayClient.php βš–οΈ File content is the same, doing nothing: modules/gateways/payzone/GatewayClient.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/COCCAepp.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/COCCAeppPoll.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/COCCAeppsync.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/logo.gif βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/ma_registrar_cert.pem βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Client.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/COPYING βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Check.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Check/Domain.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Check/Host.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Create.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Create/Contact.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Create/Domain.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Create/Host.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Info.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Info/Contact.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Info/Domain.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Info/Host.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Login.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Renew.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Renew/Domain.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Transfer.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Transfer/Contact.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Transfer/Domain.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Update.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Command/Update/Domain.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Greeting.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Hello.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Frame/Response.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/ObjectSpec.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/Protocol.php βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Net/EPP/README βš–οΈ File content is the same, doing nothing: modules/registrars/COCCAepp/Punycode.php βš–οΈ File content is the same, doing nothing: templates/orderforms/joudia/theme.yaml βš–οΈ File content is the same, doing nothing: templates/twentyziz/css/custom.css βš–οΈ File content is the same, doing nothing: templates/twentyziz/theme.yaml

Making changes to 1 file/folder to sync server state Uploading: 0 B -- Deleting: 0 B -- Replacing: 207 B

replacing "includes/hooks/redirectlogout.php"

πŸŽ‰ Sync complete. Saving current server state to "./.ftp-deploy-sync-state.json"

Time spent hashing: 65 milliseconds Time spent connecting to server: 1.1 seconds Time spent deploying: 595 milliseconds (348 B/second)

It said it replaced the file includes/hooks/redirectlogout.php but actually it doesn't on the actual server.

I run a dev and a master branch.

I push changes to dev branch and it's works fine on dev branch, but when I merge with master files doesn't get synced.

sehangel commented 6 months ago

I fixed it by moving the ftp directory to the home folder by placing .ftp-deploy-sync-state.json in it.