Deployments

Deploy a Service

1

Execute the command by passing the YAML file path of the service you want to deploy as a parameter

ale apply -f <YAML file path>
# apply -f ./node-express.yaml
2

When the project deployment begins, the following message will be displayed

1 apps deployed to @admin/test
  └ app "node-express" deployed to stage main

Update a Service

1

Execute the command by passing the YAML file path of the service you want to update as a parameter

ale apply -f <YAML file path>
# ale apply -f ./node-express.yaml
2

When the deployment starts with the updated content, the following message will be displayed

1 apps deployed to @admin/test
  └ app "node-express" deployed to stage main

Remove a Service

1

Execute the command by passing the name of the service you want to remove as a parameter

ale remove <service-name>
# ale remove node-express
2

When the service is successfully removed, the following result will be displayed

deployment "node-express" removed from @admin/test:main.
1 deployments removed

Service Information and Access

View Service Logs

1

Execute the following command by passing the name of the service whose logs you want to view as a parameter

ale logs <service-name>
# ale logs node-express
2

If the service is running normally, the logs will be displayed


> myapp@0.0.0 start
> node ./bin/www

Access Service Terminal

1

Execute the following command by passing the name of the service you want to access via terminal as a parameter

ale terminal <service-name>
# ale terminal node-express
2

If the service is running normally, you will be connected to the service through the terminal

node@node-express:/app$