generated from alphane/template
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
nodejs 20.10.0
|
|
||||||
ruby 3.2.2
|
|
||||||
+2
-33
@@ -16,44 +16,13 @@ Note that the `dev` command uses the `db` service, and so only has access to fol
|
|||||||
|
|
||||||
## Set up `dev` command
|
## Set up `dev` command
|
||||||
|
|
||||||
The `dev` command vastly simplifies development using docker compose. It only requires `ruby`; however, `direnv` and `asdf` will make it easier to use.
|
The `dev` command vastly simplifies development using docker compose. It only requires `python`; however, `direnv` and `asdf` will make it easier to use.
|
||||||
|
|
||||||
It's simply a wrapper around docker compose with the ability to quickly add custom helpers.
|
It's simply a wrapper around docker compose with the ability to quickly add custom helpers.
|
||||||
|
|
||||||
All commands are just strings joined together, so it's easy to add new commmands. `dev` prints out each command that it runs, so that you can run the command manually to debug it, or just so you learn some docker compose syntax as you go.
|
All commands are just strings joined together, so it's easy to add new commmands. `dev` prints out each command that it runs, so that you can run the command manually to debug it, or just so you learn some docker compose syntax as you go.
|
||||||
|
|
||||||
1. (optional) Install `asdf` as seen in <https://asdf-vm.com/guide/getting-started.html>.
|
1. (optional) Install [direnv](https://direnv.net/) and create an `.envrc` with
|
||||||
|
|
||||||
e.g. for Linux
|
|
||||||
|
|
||||||
```bash
|
|
||||||
apt install curl git
|
|
||||||
|
|
||||||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.12.0
|
|
||||||
|
|
||||||
echo '
|
|
||||||
# asdf
|
|
||||||
. "$HOME/.asdf/asdf.sh"
|
|
||||||
. "$HOME/.asdf/completions/asdf.bash"
|
|
||||||
' >> ~/.bashrc
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Install `ruby` via `asdf` as seen here <https://github.com/asdf-vm/asdf-ruby>, or using whatever custom Ruby install method works for your platform.
|
|
||||||
|
|
||||||
e.g. for Linux
|
|
||||||
|
|
||||||
```bash
|
|
||||||
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
|
|
||||||
|
|
||||||
# install version from .tool-versions file
|
|
||||||
asdf install ruby
|
|
||||||
|
|
||||||
asdf reshim ruby
|
|
||||||
```
|
|
||||||
|
|
||||||
You will now be able to run the `./bin/dev` command.
|
|
||||||
|
|
||||||
3. (optional) Install [direnv](https://direnv.net/) and create an `.envrc` with
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|||||||
Reference in New Issue
Block a user