Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. Cartridge app: dev + deploy scenarios
  2. =====================================
  3.  
  4. (1) cartridge create my_app ...
  5. |
  6. (2) *develop roles*
  7. / / \ \
  8. RPM (for prod) TGZ (for testing, or if no root access) DEB (for prod) .rocks (for local testing)
  9. | | | |
  10. (3) cartridge pack rpm my_app ... (3) cartridge pack tgz my_app ... (3) cartridge pack deb my_app ... (3) tarantoolctl rocks make
  11. | | | |
  12. (4) *copy .rpm to target PC with systemctl* (4) *copy .tgz to target PC (any OS)* (4) *copy .deb to target PC (Debian)* (4) # only for the same PC (any OS)
  13. | | | tarantool init.lua ...
  14. (5) yum install ... (5) tar -xzvf my_app-<version>.tgz ... (5) dpkg -i myapp-<version>.deb ... ctrl+C
  15. | | | -- OR --
  16. (6) systemctl start ... (6) tarantool init.lua ... (6) systemctl start ... cartidge start ...
  17. stop ... ctrl+C stop ... stop ...
  18. -- OR --
  19. cartridge start ...
  20. stop ...
  21.  
  22.  
  23. * Before start, specify YAML configuration (in .cartridge.yml or custom *.yml-file);
  24. use ansible or other tools to manage configuration
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement