Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
icflorescu committed May 26, 2016
1 parent 9a62e8d commit 9c60f0f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ What's wrong?

Since you're here, chances are you might also be interested in this [custom MongoDB cartridge](https://github.com/icflorescu/openshift-cartridge-mongodb).

## Credits

See contributors [here](https://github.com/icflorescu/openshift-cartridge-nodejs/graphs/contributors).

If you find this repo useful, don't hesitate to give it a star and [spread the word](http://twitter.com/share?text=Checkout%20this%20custom%20Node.js%20cartridge%20for%20OpenShift!&url=http%3A%2F%2Fgithub.com/icflorescu/openshift-cartridge-nodejs&hashtags=javascript,nodejs,openshift&via=icflorescu).

## Before raising issues

I'm getting lots of questions from people just learning to do web development or simply looking to solve a very specific problem they're dealing with. While I will answer some of them for the benefit of the community, please understand that open-source is a shared effort and it's definitely not about piggybacking on other people's work. On places like GitHub, that means raising issues is encouraged, but coming up with useful PRs is a lot better. If I'm willing to share some of my code for free, I'm doing it for a number of reasons: my own intellectual challenges, pride, arrogance, stubbornness to believe I'm bringing a contribution to common progress and freedom, etc. Your particular well-being is probably not one of those reasons. I'm not in the business of providing free consultancy, so if you need my help to solve your specific problem, there's a fee for that.


## Credits

See contributors [here](https://github.com/icflorescu/openshift-cartridge-nodejs/graphs/contributors).

If you find this repo useful, don't hesitate to give it a star and [spread the word](http://twitter.com/share?text=Checkout%20this%20custom%20Node.js%20cartridge%20for%20OpenShift!&url=http%3A%2F%2Fgithub.com/icflorescu/openshift-cartridge-nodejs&hashtags=javascript,nodejs,openshift&via=icflorescu).

## License

The [ISC License](https://github.com/icflorescu/openshift-cartridge-nodejs/blob/master/LICENSE).
2 changes: 2 additions & 0 deletions bin/control
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ function status() {

function tidy() {
shopt -s dotglob
client_message "Emptying logs in ${OPENSHIFT_LOG_DIR}..."
rm -rf ${OPENSHIFT_LOG_DIR}/*.log*
client_message 'Done tidying up Node.js cartridge.'
}

case ${1} in
Expand Down
2 changes: 1 addition & 1 deletion usr/template/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<footer>
<p>Developed by <a href="https://github.com/icflorescu" target="_blank">Ionut-Cristian Florescu</a> and released under the <a href="https://github.com/icflorescu/openshift-cartridge-nodejs/blob/master/LICENSE">ISC License</a>.</p>
</footer>
<script src="https://cdn.jsdelivr.net/riot/2.3.16/riot+compiler.min.js"></script>
<script src="https://cdn.jsdelivr.net/riot/2.4.1/riot+compiler.min.js"></script>
<script src="https://cdn.jsdelivr.net/superagent/0.18.0/superagent.min.js"></script>
<script type="riot/tag" src="info.tag"></script>
<script>
Expand Down
9 changes: 3 additions & 6 deletions usr/template/utils/sys-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ exports.gen = function () {
}, {
name: 'CPU Cores',
value: os.cpus().length
}, {
name: 'Total Memory',
value: `${Math.round(os.totalmem() / 1048576)} MB`
}, {
name: 'Gear Memory',
value: `${env.OPENSHIFT_GEAR_MEMORY_MB} MB`
value: `${env.OPENSHIFT_GEAR_MEMORY_MB}MB`
}, {
name: 'NODE_ENV',
value: env.NODE_ENV
Expand All @@ -39,9 +36,9 @@ exports.gen = function () {
exports.poll = function () {
return [{
name: 'Free Memory',
value: `${Math.round(os.freemem() / 1048576)} MB`
value: `${Math.round(os.freemem() / 1048576)}MB`
}, {
name: 'Uptime',
value: `${os.uptime()} s`
value: `${os.uptime()}s`
}];
};

0 comments on commit 9c60f0f

Please sign in to comment.