command
module
Version:
v0.0.0-...-20180a1
Opens a new window with list of versions in this module.
Published: Jan 4, 2016
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
orb
Slack bot to post CodeChef programming problems at 8:30 each day. orb uses cron job for scheduling.
Openshift Deployment
orb can be deployed on Openshift with the following steps. Make sure you have Openshift Client Tools installed.
-
Install the Go cartridge.
rhc create-app orb https://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-go-cart
-
Create a local copy of your project.
rhc git-clone -a orb
-
Update .godir
file with your package name. e.g. The .godir
file might contain:
github.com/shivamMg/orb
-
Install cron cartridge for your application.
rhc cartridge add cron -a orb
-
You need to add a cron job that runs hourly, so create hourly
directory inside cron
and create a bash script in it.
mkdir -p .openshift/cron/hourly
touch .openshift/cron/hourly/script.sh
-
Add the following inside the script:
#! /bin/bash
export TZ="Asia/Calcutta"
date >> $OPENSHIFT_GO_LOG_DIR/last_date_cron_ran
$OPENSHIFT_REPO_DIR/bin/orb >> $OPENSHIFT_GO_LOG_DIR/last_date_cron_ran
This will keep a track of the questions posted.
-
Make your script executable.
chmod +x .openshift/cron/hourly/script.sh
-
Add necessary files used by orb.
-
Add your changes, commit work and push.
git add *
git commit -m "Add orb"
git push
License
See LICENSE
file.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.