mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-06-28 22:10:35 +00:00
31 lines
502 B
Bash
Executable file
31 lines
502 B
Bash
Executable file
#!/bin/sh
|
|
BIN_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
BUILD_DIR=$1
|
|
|
|
# Build autossh for reliable SSH tunnels
|
|
|
|
cd vendor/autossh/
|
|
./configure
|
|
make
|
|
mkdir -p $BUILD_DIR/autossh/bin/
|
|
mv autossh $BUILD_DIR/autossh/bin/
|
|
cd ../../
|
|
|
|
|
|
# Build dtach for running scripts in the background
|
|
|
|
cd vendor/dtach/
|
|
./configure
|
|
make
|
|
mkdir -p $BUILD_DIR/dtach/bin/
|
|
mv dtach $BUILD_DIR/dtach/bin/
|
|
cd ../../
|
|
|
|
# Move Java files to the dyno
|
|
|
|
mv vendor/java $BUILD_DIR/java
|
|
|
|
# Move scripts to the dyno
|
|
|
|
mv script $BUILD_DIR/script
|