This PR thoroughly cleans up my dev environment bootstrap scripts. It replaces both ~/.bin/tmux/open_project.sh and ~/.bin/tmux/close_project.sh in favor of a new ~/.bin/tmux/d command that does a whole lot more with about 120 lines of code less. Fixes #5
Changelog
Added bin/rails/lookup-db-credentials
Added bin/rails/ssh-credentials
Added bin/git/github-search-repos
Modified bin/rails/deploy:
Properly prefix all message feedback with the command name, so d output is more readable.
Added bin/rails/bootstrap:
Copies config/*.yml files from their `.dist parents
Creates a .ruby-version file with the ruby version of the production server.
Reads SSH credentials using the new ~/.bin/rails/ssh-credentials command.
Installs the ruby version mentioned in .ruby-version using rbenv, if necessary.
Installs Bundler for the current Ruby version, when necessary.
Runs bundle install --quiet in the project root.
Modified bin/rails/db-import:
Properly prefix all message feedback with the command name, so d output is more readable.
Reads SSH credentials using the new ~/.bin/rails/ssh-credentials command.
Now creates non-existent databases prior to importing data.
Added bin/tmux/d:
Running d will open a fuzzy search on directories in ~/Sites/ to boot a dev environment for the selected project.
Running d davelens/dotfiles will git clone a project from GitHub before booting the project directly.
Running d -x will open a fuzzy search on the running tmux sessions and will close the selected session.
Running d -n will query the GitHub API for repo namespaces you can use to bootstrap local projects.
Reads database names using the new ~/.bin/rails/lookup-db-credentials command.
Asks to boot the local MySQL server when necessary.
Asks to boot the puma server when dealing with Rails projects.
Runs the new bin/rails/bootstrap to bootstrap freshly imported Rails projects.
Runs a headless spring server for Rails projects, which persists across
Neovim :terminal buffers.
No longer opening a separate shell tmux window, in favour of Neovim :terminal buffers.
Renamed the console window to the more generic and apt repl.
This PR thoroughly cleans up my dev environment bootstrap scripts. It replaces both
~/.bin/tmux/open_project.sh
and~/.bin/tmux/close_project.sh
in favor of a new~/.bin/tmux/d
command that does a whole lot more with about 120 lines of code less. Fixes #5Changelog
bin/rails/lookup-db-credentials
bin/rails/ssh-credentials
bin/git/github-search-repos
bin/rails/deploy
:d
output is more readable.bin/rails/bootstrap
:config/*.yml
files from their `.dist parents.ruby-version
file with the ruby version of the production server.~/.bin/rails/ssh-credentials
command..ruby-version
using rbenv, if necessary.bundle install --quiet
in the project root.bin/rails/db-import
:d
output is more readable.~/.bin/rails/ssh-credentials
command.bin/tmux/d
:d
will open a fuzzy search on directories in~/Sites/
to boot a dev environment for the selected project.d davelens/dotfiles
willgit clone
a project from GitHub before booting the project directly.d -x
will open a fuzzy search on the running tmux sessions and will close the selected session.d -n
will query the GitHub API for repo namespaces you can use to bootstrap local projects.~/.bin/rails/lookup-db-credentials
command.bin/rails/bootstrap
to bootstrap freshly imported Rails projects.:terminal
buffers.shell
tmux window, in favour of Neovim:terminal
buffers.console
window to the more generic and aptrepl
.