ignite / apps

Ignite Apps
https://docs.ignite.com/apps/using-apps
Other
15 stars 3 forks source link

feat: spaceship #103

Closed Pantani closed 3 months ago

Pantani commented 5 months ago

Description

Spaceship offers several ways to connect to your SSH server:

ignite spaceship deploy root@127.0.0.1 --key $HOME/.ssh/id_rsa
OR
ignite spaceship deploy 127.0.0.1 --user root --key $HOME/.ssh/id_rsa
OR
ignite spaceship deploy 127.0.0.1 --user root --password password
OR
ignite spaceship deploy root@127.0.0.1 --key $HOME/.ssh/id_rsa --key-password key_password

Each time you run this command, the binary is built, and the chain home folder is created based on the chain configuration. The app then connects to the server via SSH, creates workspaces, transfers the binary, and runs it using a runner script. The workspaces are created in $HOME/workspace/<chain-id> and consist of the following elements:

To check the status of your chain, use:

ignite spaceship status root@127.0.0.1 --key $HOME/.ssh/id_rsa

To view the chain logs, use:

ignite spaceship log root@127.0.0.1 --key $HOME/.ssh/id_rsa

To stop the running chain, use:

ignite spaceship stop root@127.0.0.1 --key $HOME/.ssh/id_rsa

If you need to redeploy the chain on the same server, the home folder will not be overwritten. To reinitialize the chain, use the --init-chain flag.