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

Add local deployment #2

Open
AdrKacz opened this issue May 31, 2024 · 0 comments
Open

Add local deployment #2

AdrKacz opened this issue May 31, 2024 · 0 comments

Comments

@AdrKacz
Copy link
Member

AdrKacz commented May 31, 2024

Add the option to use local docker to speed up (for now always deploys to the cloud)

Update the command line to automatically remove and rebuild docker when sst run

See

https://docs.docker.com/get-started/03_updating_app/
https://stackoverflow.com/questions/32073971/stopping-docker-containers-by-image-name-ubuntu

Start

docker build -t crispy-pancake .
docker run -dp 127.0.0.1:8080:8080 crispy-pancake

Update

docker rm $(docker stop $(docker ps -a -q --filter ancestor=crispy-pancake))
docker build -t crispy-pancake .
docker run -dp 127.0.0.1:8080:8080 crispy-pancake

Stop

docker rm $(docker stop $(docker ps -a -q --filter ancestor=crispy-pancake))
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

No branches or pull requests

1 participant