to make changes available immediately, run:
source ~/.zshrc
or if you're not running the ZSH shell:
source ~/.bashrc
To use this new alias:
nrp my_project
cd my_project
docker-compose up --build
in a new tab you can start your IDE and issue commands to the docker container like so:
code .
docker-compose run my_project rails generate controler Welcome index
You can also start a new Rails API application as such:
nrp my_project --api
Things to note:
- this script will use the latest version of Ruby and Rails available
- You need docker and docker compose installed for this setup to work
Great! 👍