Initial commit
This commit is contained in:
8
bin/dev
Normal file
8
bin/dev
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
if ! gem list foreman -i --silent; then
|
||||
echo "Installing foreman..."
|
||||
gem install foreman
|
||||
fi
|
||||
|
||||
exec foreman start -f Procfile.dev --env=/dev/null "$@"
|
||||
25
bin/setup
Normal file
25
bin/setup
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
# This script is a way to set up and keep your development environment updated
|
||||
# automatically. It is meant to be idempotent so that you can run it at any
|
||||
# time to get the same result. Add any new necessary setup steps to this file
|
||||
# as your application evolves.
|
||||
|
||||
announce() {
|
||||
local bold='\033[1m'
|
||||
local reset='\033[0m'
|
||||
printf "${bold}${1}${reset}\n"
|
||||
}
|
||||
|
||||
announce "Running bundle install..."
|
||||
bundle check || bundle install
|
||||
|
||||
announce "\nRunning npm install..."
|
||||
npm install
|
||||
|
||||
announce "\nPreparing the database..."
|
||||
hanami db prepare
|
||||
|
||||
announce "\n🌸 Setup complete!"
|
||||
Reference in New Issue
Block a user