Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cartridge app: dev + deploy scenarios
- =====================================
- (1) cartridge create my_app ...
- |
- (2) *develop roles*
- / / \ \
- RPM (for prod) TGZ (for testing, or if no root access) DEB (for prod) .rocks (for local testing)
- | | | |
- (3) cartridge pack rpm my_app ... (3) cartridge pack tgz my_app ... (3) cartridge pack deb my_app ... (3) tarantoolctl rocks make
- | | | |
- (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)
- | | | tarantool init.lua ...
- (5) yum install ... (5) tar -xzvf my_app-<version>.tgz ... (5) dpkg -i myapp-<version>.deb ... ctrl+C
- | | | -- OR --
- (6) systemctl start ... (6) tarantool init.lua ... (6) systemctl start ... cartidge start ...
- stop ... ctrl+C stop ... stop ...
- -- OR --
- cartridge start ...
- stop ...
- * Before start, specify YAML configuration (in .cartridge.yml or custom *.yml-file);
- use ansible or other tools to manage configuration
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement