forked from Archives/Athou_commafeed
Fixes OpenShift build
This commit is contained in:
@@ -1,11 +1,22 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd $OPENSHIFT_REPO_DIR
|
cd $OPENSHIFT_REPO_DIR
|
||||||
|
|
||||||
|
rm -rf $OPENSHIFT_REPO_DIR/node
|
||||||
|
rm -rf $OPENSHIFT_REPO_DIR/node_modules
|
||||||
|
rm -rf $OPENSHIFT_TMP_DIR/npm
|
||||||
|
rm -rf $OPENSHIFT_TMP_DIR/npmrc
|
||||||
|
rm -rf $OPENSHIFT_TMP_DIR/m2
|
||||||
|
rm -rf $OPENSHIFT_TMP_DIR/local
|
||||||
|
|
||||||
|
export NPM_CONFIG_PREFIX="$OPENSHIFT_TMP_DIR/npm"
|
||||||
|
export NPM_CONFIG_USERCONFIG="$OPENSHIFT_TMP_DIR/npmrc"
|
||||||
export NPM_CONFIG_CACHE="$OPENSHIFT_TMP_DIR/npm/cache"
|
export NPM_CONFIG_CACHE="$OPENSHIFT_TMP_DIR/npm/cache"
|
||||||
export MAVEN_OPTS="-Dmaven.repo.local=$OPENSHIFT_TMP_DIR/m2"
|
export MAVEN_OPTS="-Dmaven.repo.local=$OPENSHIFT_TMP_DIR/m2"
|
||||||
export HOME="$OPENSHIFT_TMP_DIR/local"
|
export HOME="$OPENSHIFT_TMP_DIR/local"
|
||||||
|
|
||||||
|
export NPM_CONFIG_ARCH="x64"
|
||||||
|
|
||||||
npm install npm
|
npm install npm
|
||||||
export PATH="$OPENSHIFT_REPO_DIR/node_modules/.bin:$PATH"
|
export PATH="$OPENSHIFT_REPO_DIR/node_modules/.bin:$PATH"
|
||||||
|
|
||||||
mvn clean package
|
mvn clean package -DskipTests -Dos.arch=x64
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
Run scripts or jobs on a periodic basis
|
|
||||||
=======================================
|
|
||||||
Any scripts or jobs added to the minutely, hourly, daily, weekly or monthly
|
|
||||||
directories will be run on a scheduled basis (frequency is as indicated by the
|
|
||||||
name of the directory) using run-parts.
|
|
||||||
|
|
||||||
run-parts ignores any files that are hidden or dotfiles (.*) or backup
|
|
||||||
files (*~ or *,) or named *.{rpmsave,rpmorig,rpmnew,swp,cfsaved}
|
|
||||||
|
|
||||||
The presence of two specially named files jobs.deny and jobs.allow controls
|
|
||||||
how run-parts executes your scripts/jobs.
|
|
||||||
jobs.deny ===> Prevents specific scripts or jobs from being executed.
|
|
||||||
jobs.allow ===> Only execute the named scripts or jobs (all other/non-named
|
|
||||||
scripts that exist in this directory are ignored).
|
|
||||||
|
|
||||||
The principles of jobs.deny and jobs.allow are the same as those of cron.deny
|
|
||||||
and cron.allow and are described in detail at:
|
|
||||||
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Automating_System_Tasks.html#s2-autotasks-cron-access
|
|
||||||
|
|
||||||
See: man crontab or above link for more details and see the the weekly/
|
|
||||||
directory for an example.
|
|
||||||
|
|
||||||
PLEASE NOTE: The Cron cartridge must be installed in order to run the configured jobs.
|
|
||||||
|
|
||||||
For more information about cron, consult the documentation:
|
|
||||||
http://openshift.github.io/documentation/oo_cartridge_guide.html#cron
|
|
||||||
http://openshift.github.io/documentation/oo_user_guide.html#cron
|
|
||||||
279
diy/index.html
279
diy/index.html
File diff suppressed because one or more lines are too long
@@ -1,14 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
require 'webrick'
|
|
||||||
include WEBrick
|
|
||||||
|
|
||||||
config = {}
|
|
||||||
config.update(:Port => 8080)
|
|
||||||
config.update(:BindAddress => ARGV[0])
|
|
||||||
config.update(:DocumentRoot => ARGV[1])
|
|
||||||
server = HTTPServer.new(config)
|
|
||||||
['INT', 'TERM'].each {|signal|
|
|
||||||
trap(signal) {server.shutdown}
|
|
||||||
}
|
|
||||||
|
|
||||||
server.start
|
|
||||||
Reference in New Issue
Block a user