tuist/projects/cloud/up

15 lines
515 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
bundle install
npm install
brew install postgresql@14
brew services restart postgresql
bin/rails db:create
bin/rails db:migrate
if [ ! -f config/master.key ]; then
echo "Input data for development credentials use config/credentials.example.yml as an example. For development, you can keep the mock data from the example yml. Do not commit the config/credentials.yml.enc file if you plan to post a PR."
rm config/credentials.yml.enc
EDITOR="code --wait" bin/rails credentials:edit
fi