-
Notifications
You must be signed in to change notification settings - Fork 110
feat: deploy command core logic and implementation #1207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
hwbrzzl
merged 72 commits into
goravel:master
from
cggonzal:feature/deploy-command-core-logic
Oct 29, 2025
Merged
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
837f2cf
start core logic implementation
cggonzal b2f90dd
modify env example to have relevant deploy environment variables
cggonzal da70f58
modify environment variables and deployment options
cggonzal bdff5ff
refine server set up
cggonzal 360e97a
comment changes
cggonzal fffc71b
bug fixes from audit
cggonzal ef5477f
add comment with documentation at the top of deploy command file
cggonzal 438415a
update comment
cggonzal 0eddab8
update tests
cggonzal 7b719d7
rearrange comment usage to bottom
cggonzal 65e0c3b
more comments tweaks
cggonzal a69e267
clean up created files during tests
cggonzal bdf45c5
add checks for runtime environment and scp, ssh, bash, dependencies
cggonzal b6746a8
test fixes
cggonzal ea9e7f2
windows tests bug fix
cggonzal 6ab1db4
increase code coverage on tests
cggonzal f3a4b91
increase code coverage
cggonzal 531f3eb
Revert "increase code coverage"
cggonzal 5af9796
Revert "increase code coverage on tests"
cggonzal 2f42405
add missing env variable to example
cggonzal 9c17702
properly handle rollback based on deploy tests
cggonzal 784980c
modify tests
cggonzal b5c52c7
address comments
cggonzal a59d682
remove domain nil check
cggonzal 29053e7
use existing file existence check function
cggonzal 53da0b5
added EnvString() and EnvBool() functions
cggonzal 7e10767
introduce windows support
cggonzal 3b3872a
increase test coverage for windows
cggonzal 5049a0a
change DEPLOY_APP_PORT to DEPLOY_REVERSE_PROXY_PORT
cggonzal b821119
cahnge DEPLOY_IP_ADDRESS to DEPLOY_SSH_IP
cggonzal 06a3129
remove deployment configuration from .env file and instead put in the…
cggonzal 67ecb2d
make remote base directory a variable instead of forcing to /var/www
cggonzal 0bf6226
stop mocking build command and just call it directly via CLI
cggonzal 0e46296
handle encrypted env file
cggonzal 8498bd6
change getAllOptions to getDeployOptions
cggonzal d14c874
change getWhichFilesToUpload() to getUploadOptions()
cggonzal a0c39c8
make setupServerCommand only take in 1 value
cggonzal 75256d6
change parameters into commands so they are minimized
cggonzal 0120621
mock config and mock context initialization
cggonzal f72a80b
add more deploy success and failure tests
cggonzal 2009d15
put config keys inside of app.deploy.*** and app.build.***
cggonzal 867645e
update tests
cggonzal eb82a46
zip backups and .prev safety
cggonzal 9da7d81
only upload storage on initial setup
cggonzal dcdf326
add tests for new EnvString() and EnvBool() config functions
cggonzal b757797
update deploy command documentation comment
cggonzal 5a5f37d
change ipAddress to sshIP and appPort to reverseProxyPort
cggonzal d5b3e2a
make rollback command take opts as the only parameter
cggonzal a0c7655
use artisan facade for build command
cggonzal dee98c7
use content to check if env file is encrypted
cggonzal 1c9b17b
modify isServerAlreadySetup() to take in opts as the only parameter
cggonzal c3e7f00
remove os check
cggonzal 98103e8
update wording for local host validation
cggonzal abe4d5a
modify test maybe checks
cggonzal 34018a6
resolve lint error
cggonzal cfacc1d
add tests
cggonzal aac4ad1
update tests
cggonzal 44ab652
fix lint error
cggonzal e3bdad0
fix failing CI
cggonzal ef23b28
sort deployOptions struct alphabetically
cggonzal f81516d
comment update
cggonzal 87edad1
modify error handling in validLocalHost
cggonzal 2dfbdf1
remove unused param
cggonzal da7fd22
modify getDeployOptions error handling to not exit
cggonzal d2d754f
add tests for isEncryptedEnvContent function
cggonzal b1a291a
support env decrypt deploys
cggonzal bc61a90
change force-setup flag to --force
cggonzal ab9fe0d
get APP_ENV from .env file instead of putting it into systemd environ…
cggonzal da6002c
have app prefer the http.port for the reverse proxy setting
cggonzal fc3d197
address force setup comments
cggonzal 2b5e664
allow caddy to support tls off mode
cggonzal 41b3454
Merge branch 'master' into feature/deploy-command-core-logic
cggonzal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.