I'm trying to write a simple .zsh script to start my webservers upon computer boot.
This works well:
#!/bin/zsh
cd /Users/me/Sites/Vue/mysite && npm run dev &
But this doesn't work:
#!/bin/zsh
cd /Users/me/Sites/Ruby/mysite && rackup &
This is the error message:
❯ ./myscript.zsh
Resolving dependencies...
Could not find proper version of rack (2.2.4) in any of the sources
Run `bundle install` to install missing gems.
Obviously, when I run the command in the terminal window directly, it cds and executes rackup without a problem.