Comments (6)
Maybe you can use npm start
instead of hard coding the entry-point.
from openshift-cartridge-nodejs.
👍 for npm start
as @wytesk133. Hard-coding the entry-point seems strange
from openshift-cartridge-nodejs.
Nodemon also tries npm start
by default as well as other PAAS services like Heroku.
+1 for npm start
:)
from openshift-cartridge-nodejs.
Thank you all for your feedback!
I'm leaning towards npm start
myself so I'll get @AlexChesters's PR later today. I just have one small concern about it, see the discussion here.
If we'll find the memory usage unacceptable, we'll have to look for a way to "emulate" npm start
using bash... which I find totally unappealing :-P
from openshift-cartridge-nodejs.
Finally managed to find some spare time for this; the "default" template looks a bit better now (imo).
Deploying a cartridge on OpenShift takes long enough already, that's why I wanted to avoid creating an express or koa application.
I've referred Riot.js and superagent from jsdelivr on the client-side, though. The client is polls the server and updates the "Uptime" and "Free Memory" rows once every 3 seconds... just for fun.
from openshift-cartridge-nodejs.
By default Node.js doesn't run in strict mode. If you're referring to the
default application template, it's running in strict mode because of line 8
in package.json:
https://github.com/icflorescu/openshift-cartridge-nodejs/blob/master/usr/template/package.json#L8
Feel free to adjust it how you see fit in your application.
Ionut-Cristian Florescu
+40.723.784.997 | [email protected] | linkedin.com/in/icflorescu
On Thu, May 12, 2016 at 2:43 AM, Rafael Salguero Iturrios <
[email protected]> wrote:
Sorry if this is a dumb question but I can't find anything on google.
There is a config file or any other way where I can disable --use_strict
? Google Cloud Storage API and node-forge doesn't run with strict mode—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
#6 (comment)
from openshift-cartridge-nodejs.
Related Issues (20)
- How to disable strict-mode HOT 1
- support "stop" script HOT 5
- Instructions on how to set up HOT 3
- Number of installs/deployments
- Updating an already deployed app HOT 3
- Constant error during push - Failed to execute: 'control stop' HOT 3
- failed to install github modules?
- No ".openshift" directory HOT 2
- Failed to execute: 'control start' for ... HOT 5
- Problem while creating my application (rhc command line) HOT 4
- HTTP error 503 while node.js is booting on a idle gear HOT 4
- Constant issue -- Cannot read property 'stop' of undefined HOT 1
- Problem when deploying? HOT 1
- Failed to execute control start HOT 1
- update current running applications NODE.js cartridge HOT 5
- Sorry for being inactive lately
- Add create app logo
- Log files location? HOT 3
- Looking for maintainers HOT 2
- Missing enviroment variables HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openshift-cartridge-nodejs.