This file contains hidden or 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
IMAGE node:argon | |
RUN mkdir -p /usr/app | |
COPY . /usr/app | |
WORKDIR /usr/app | |
RUN npm install |
This file contains hidden or 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
####### | |
## StrongLoop Loopback Node.js Production Deployment on Loopback AWS AMI | |
####### | |
#first install npm package | |
npm install -g strong-pm | |
#then install the service | |
#since I'm running loopback's AWS AMI, it's critical to use the --upstart=0.6 command | |
sudo slc pm-install --port 8701 --upstart=0.6 |
This file contains hidden or 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
#!/bin/bash | |
# author [email protected] | |
TEMP=`getopt -o vt: --long target -n 'example.bash' -- "$@"` | |
if [ $? != 0 ] ; then echo "getopt fail, terminating..." >&2 ; exit 1 ; fi | |
# Note the quotes around `$TEMP': they are essential! | |
eval set -- "$TEMP" | |
Usage() { |
This file contains hidden or 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
apply plugin: 'java' | |
apply plugin: 'gradle-one-jar' | |
apply plugin: 'application' | |
// Use Java 8 by default | |
sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | |
version = '1.0' | |
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' |