Init dump
This commit is contained in:
Executable → Regular
Executable → Regular
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Wait for SQL Server to be ready
|
||||
# You can adjust the sleep time if needed
|
||||
sleep 7
|
||||
|
||||
# Run init-script with long timeout - and make it run in the background
|
||||
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "Br1tt0nPassw0rd" -i init.sql &
|
||||
# Start SQL Server
|
||||
/opt/mssql/bin/sqlservr
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
if ! gem list foreman -i --silent; then
|
||||
echo "Installing foreman..."
|
||||
gem install foreman
|
||||
fi
|
||||
|
||||
# Default to port 3000 if not specified
|
||||
export PORT="${PORT:-3000}"
|
||||
|
||||
# Let the debug gem allow remote connections,
|
||||
# but avoid loading until `debugger` is called
|
||||
export RUBY_DEBUG_OPEN="true"
|
||||
export RUBY_DEBUG_LAZY="true"
|
||||
|
||||
exec foreman start -f Procfile.dev "$@"
|
||||
Executable → Regular
Executable → Regular
+2
@@ -4,6 +4,8 @@ set -e
|
||||
# Remove a potentially pre-existing server.pid for Rails.
|
||||
rm -f /usr/src/app/tmp/pids/server.pid
|
||||
|
||||
rm -rf /usr/local/bundle/cache/*.gem
|
||||
|
||||
echo "bundle install..."
|
||||
bundle check || bundle install --jobs 4
|
||||
|
||||
|
||||
Executable → Regular
Executable → Regular
Reference in New Issue
Block a user