-
Notifications
You must be signed in to change notification settings - Fork 41
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
Deploy using Kamal #145
Merged
Merged
Deploy using Kamal #145
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
santiagorodriguez96
force-pushed
the
sr--setup-kamal
branch
2 times, most recently
from
April 5, 2024 14:50
68bc0b8
to
5756295
Compare
santiagorodriguez96
force-pushed
the
sr--setup-kamal
branch
from
April 16, 2024 14:53
5756295
to
2ad892a
Compare
To prevent the docker container from using too much memory from the server, we are adding a memory limit. By adding a memory limit, docker will kill the container when it gets to the limit of memory usage and the docker container will be restarted – as its started up with the `--restart unless-stopped` option. However, we need to add the logic for cleaning the `server.pid` if exists when starting the server given that when the docker container starts itself after being killed it runs into an error when starting the server as the `server.pid` already exists: ``` a server is already running (pid: 1, file: /rails/tmp/pids/server.pid) ```
santiagorodriguez96
force-pushed
the
sr--setup-kamal
branch
from
August 23, 2024 14:27
2ad892a
to
b71935b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
This PR configures kamal so that we can start using it for deploying to our AWS servers.
Details
You will need an
.env
file with these secretsSECRET_KEY_BASE
andPOSTGRES_PASSWORD
Steps to set up the servers in AWS:
kamal setup
For normal deploys run
kamal deploy
.If env vars change you will have to push them with
kamal env push