Skip to content
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

Implement deployment commands #12

Open
15 tasks done
gplanchat opened this issue Sep 23, 2020 · 0 comments · May be fixed by #13
Open
15 tasks done

Implement deployment commands #12

gplanchat opened this issue Sep 23, 2020 · 0 comments · May be fixed by #13
Assignees

Comments

@gplanchat
Copy link
Member

gplanchat commented Sep 23, 2020

As a developer I want to deploy my application on an environment, should it be local or remote, be able to synchronize the files I have in local and the ones on the remote environment.

Commands to add:

  • environment:init Asks questions about the location (server/directory) of the remote environment, environment variables to set and writes them inside a .kloud.environment.yaml file in the local workspace.
  • environment:deploy integrates https://deployer.org to deploy the application in the remote environment:
    • rsync the sources
    • build the Docker infrastructure through docker-compose up --no-start
  • environment:destroy that integrates https://deployer.org to destroy the application in the remote environment:
    • destroy the Docker infrastructure through docker-compose down and delete the appropriate persistent volumes
    • delete the sources and the directory
  • environment:start that integrates https://deployer.org to start the application in the remote environment, should fail if the application wasn't previously deployed
  • environment:stop that integrates https://deployer.org to stop the application in the remote environment, should fail if the application wasn't previously deployed
  • environemnt:cache:clear that integrates https://deployer.org to clear the application caches and restart the FPM servcie(s)
  • environment:rsync that synchronizes the local and remote sources (in case you switched from git branches)
  • environment:database:dump that dumps the database in the current state
  • environment:database:load that loads a database dump
  • environment:variable:get that prints the value of an environment variable
  • environment:variable:set that changes the value of an environment variable
  • environment:variable:list that prints the values of all environment variables
  • environment:variable:unset that unsets an environment variable
  • environment:proxy that proxies a port in the stack to a local port (especially for Xdebug and database accesses)
  • environment:shell that opens a shell in a node of the execution environment (be it sh, sh-xdebug or sql nodes)
nicolas43000 added a commit that referenced this issue Sep 23, 2020
@nicolas43000 nicolas43000 linked a pull request Sep 23, 2020 that will close this issue
nicolas43000 added a commit that referenced this issue Sep 24, 2020
nicolas43000 added a commit that referenced this issue Sep 30, 2020
nicolas43000 added a commit that referenced this issue Oct 2, 2020
@gplanchat gplanchat linked a pull request Nov 5, 2020 that will close this issue
nicolas43000 added a commit that referenced this issue Nov 20, 2020
nicolas43000 added a commit that referenced this issue Nov 20, 2020
nicolas43000 added a commit that referenced this issue Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants