This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In project: | |
1. Double check that package.json has a start script | |
In command line, in PROJECT folder - add Heroku: | |
2. which heroku | |
3. heroku create herokuSiteName | |
4. git remote -v (shows you the heroku remote) | |
In command line, in PROJECT folder - add DB to Heroku: | |
5. heroku addons:create heroku-postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
database=${database:-some_database} | |
user=${user:-$database} | |
password=${password:-password} | |
while [ $# -gt 0 ]; do | |
if [[ $1 == *"--"* ]]; then | |
v="${1/--/}" | |
declare $v="$2" | |
# echo $1 $2 // Optional to see the parameter:value result | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
database=${database:-some_database} | |
test_database=${database:-some_test_database} | |
user=${user:-$database} | |
password=${password:-password} | |
while [ $# -gt 0 ]; do | |
if [[ $1 == *"--"* ]]; then | |
v="${1/--/}" | |
declare $v="$2" | |
# echo $1 $2 // Optional to see the parameter:value result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Make function (create in test directory) | |
inline fun <reified T> make(): T { | |
return makeInstanceOfClass(T::class) as T | |
} | |
fun makeInstanceOfClass(clazz: KClass<*>): Any? { | |
val primitive = makePrimitiveOrNull(clazz) | |
if (primitive != null) { | |
return primitive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -xe | |
pushd ${PROJECT_DIR} | |
git pull -r && \ | |
./gradlew build && \ | |
git push | |
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -xe | |
pushd ${PROJECT_DIR} | |
CURRENT_SPACE=$(cf target | grep space | cut -d":" -f2 | tr -d '[:space:]') | |
./gradlew clean build -x test && \ | |
cf push -f cf/manifest.yml -p "./app/build/libs/app-0.0.1-SNAPSHOT.jar" --vars-file "cf/var-files/$CURRENT_SPACE.yml" | |
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ane && push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
git commit --amend --no-edit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks.withType<Test> { | |
systemProperty("junit.jupiter.execution.parallel.enabled", true) | |
testLogging { | |
// set options for log level LIFECYCLE | |
events( | |
TestLogEvent.FAILED, | |
TestLogEvent.PASSED, | |
TestLogEvent.SKIPPED, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install openjdk@11 | |
brew link openjdk@11 --force |
NewerOlder