A lot :)
This commit is contained in:
parent
aad67af0d1
commit
63fc206c27
153 changed files with 2043 additions and 646 deletions
9
bin/brakeman
Executable file
9
bin/brakeman
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'rubygems'
|
||||
require 'bundler/setup'
|
||||
|
||||
ARGV.unshift('--ensure-latest')
|
||||
|
||||
load Gem.bin_path('brakeman', 'brakeman')
|
||||
|
|
@ -1,20 +1,23 @@
|
|||
#!/bin/bash
|
||||
#!/bin/ash
|
||||
|
||||
set -e
|
||||
|
||||
echo "1: ${1}"
|
||||
echo "2: ${2}"
|
||||
if [ -f tmp/pids/server.pid ]; then
|
||||
rm tmp/pids/server.pid
|
||||
fi
|
||||
|
||||
# Make the if statement match any invocation of the "rails server" command
|
||||
if [[ "${1}" == *rails ]] && ([ "${2}" == "server" ] || [ "${2}" == "s" ]); then
|
||||
echo "+ preparing database..."
|
||||
./bin/rails db:prepare
|
||||
echo "- preparing database done."
|
||||
|
||||
if [ ! -f /app/no_migrate ] && [ ! -v NO_MIGRATE ]; then
|
||||
echo "+ preparing database..."
|
||||
./bin/rails db:prepare
|
||||
echo "- preparing database done."
|
||||
if [ -n "$ASSETS_PATH" ]; then
|
||||
echo "+ copying assets..."
|
||||
cp -nr public/* $ASSETS_PATH
|
||||
echo "- copying assets done."
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# Execute the given or default command:
|
||||
|
|
|
|||
10
bin/rubocop
Executable file
10
bin/rubocop
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'rubygems'
|
||||
require 'bundler/setup'
|
||||
|
||||
# explicit rubocop config increases performance slightly while avoiding config confusion.
|
||||
ARGV.unshift('--config', File.expand_path('../.rubocop.yml', __dir__))
|
||||
|
||||
load Gem.bin_path('rubocop', 'rubocop')
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env ruby
|
||||
require "fileutils"
|
||||
|
||||
# path to your application root.
|
||||
APP_ROOT = File.expand_path("..", __dir__)
|
||||
APP_NAME = "a11yist"
|
||||
|
||||
def system!(*args)
|
||||
system(*args, exception: true)
|
||||
|
|
@ -17,9 +17,6 @@ FileUtils.chdir APP_ROOT do
|
|||
system! "gem install bundler --conservative"
|
||||
system("bundle check") || system!("bundle install")
|
||||
|
||||
# Install JavaScript dependencies
|
||||
system("yarn check --check-files") || system!("yarn install")
|
||||
|
||||
# puts "\n== Copying sample files =="
|
||||
# unless File.exist?("config/database.yml")
|
||||
# FileUtils.cp "config/database.yml.sample", "config/database.yml"
|
||||
|
|
@ -33,4 +30,8 @@ FileUtils.chdir APP_ROOT do
|
|||
|
||||
puts "\n== Restarting application server =="
|
||||
system! "bin/rails restart"
|
||||
|
||||
# puts "\n== Configuring puma-dev =="
|
||||
# system "ln -nfs #{APP_ROOT} ~/.puma-dev/#{APP_NAME}"
|
||||
# system "curl -Is https://#{APP_NAME}.test/up | head -n 1"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue