cloud9-ide

Node.js and socket.io don't work on Cloud9 IDE

六月ゝ 毕业季﹏ 提交于 2019-12-05 08:25:47
Does anyone has experience to have Node.js and socket.io working on Cloud9 IDE? The "Example (NodeJS with Socket.io)" (at https://c9.io/site/blog/2013/05/native-websockets-support/ ) doesn't work. First, the server ( https://c9.io/etlolap/webapp , /test.js) throws an error unless I fix as follow. I clicked Run button while test.js is on active tab. var socketIo = require('socket.io'), io = socketIo.listen(Number(process.env.PORT)); io.sockets.on('connection', function (socket) { socket.emit('news', { hello: 'world' }); socket.on('my other event', function (data) { console.log(data); }); });

Cloud9 Watir/Selenium Testing

允我心安 提交于 2019-12-05 02:23:07
问题 I have set up Cloud9 and Codeship for a simple Continuous Integration and Delivery system. It works well for developing my website/app. Has anyone been able to develop and run browser based Cucumber tests from within the Cloud9 IDE? If so, what kind of set-up did it require? PS. I have been trying to get the Watir/Selenium chromedriver installed and working with the 'headless' gem. 回答1: First an explanation. I found it very easy to set up github, c9.io, and codeship for CI and CD using

How to use Rails Composer and postgreSQL on Cloud9 and deploy on Heroku

喜夏-厌秋 提交于 2019-12-05 01:09:17
问题 The process of using Rails Composer to create a rails app using postgreSQL on Cloud9 and deploying on Heroku is fraught with warnings and errors that can confound a new developer. Are there any instructions that can help me get through the process and deploy my starter app? 回答1: I believe in the rails composer, cloud9 and heroku and the latter's recommended postgreSQL database though using them all together has a lot of little details that no one source clarifies how to get around. After

Cloud9 IDE local themes

守給你的承諾、 提交于 2019-12-04 23:45:00
问题 The Cloud9 IDE docs say you can import a Textmate theme, but i cant figure it out. Can some one explain step-by-step how i can do this. Im trying to include the theme on my localhost by the way. I found this link, but i still dont get it... https://groups.google.com/forum/#!msg/ace-discuss/kLgJFe2l2YY/47QvhIowqqMJ . The above url also mentioned being able to edit already existing themes. This would also come in handy if any one knows how to / where the files are located. 回答1: Follow these

How to declare ports in Cloud9 using Python

こ雲淡風輕ζ 提交于 2019-12-04 22:15:19
问题 I'm new to using Cloud9 IDE (c9) and so far it looks great, except a few minor things. I see from the docs that to start up a simple node.js http server, you have to pass in process.env.PORT in place of the regular port such as "8080". Node Hello World example: var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(process.env.PORT, process.env.IP); What I want to know is, on c9, can you only

Sending email using Gmail SMTP - Meteorjs

我只是一个虾纸丫 提交于 2019-12-04 22:09:07
问题 Hi I am trying set up my gmail account to send email for my Meteor app, not very easy so far server.js Meteor.startup(function () { smtp = { username: 'xxxxx', // eg: server@gentlenode.com password: 'YYYYYYYY', // eg: 3eeP1gtizk5eziohfervU server: 'smtp.gmail.com', // eg: mail.gandi.net port: 465 } process.env.MAIL_URL = 'smtp://' + encodeURIComponent(smtp.username) + ':' + encodeURIComponent(smtp.password) + '@' + encodeURIComponent(smtp.server) + ':' + smtp.port; }); Email.send({ from:

running code on BeagleBone using Cloud9 IDE

懵懂的女人 提交于 2019-12-04 21:53:23
I am very new to BeagleBone. I have been using Arduino upto now. I plug my BeagleBone into my Linux laptop, and connect BeagleBone to my router. I can open Cloud9 off the board by browsing to 192...:3000. I want to load and run this code: https://github.com/jadonk/bonescript described here: http://www.gigamegablog.com/2012/01/05/beaglebone-coding-101-blinking-an-led/ On the File menu I can not find any option to create a new project. How am I suppose to load code into Cloud9 ? You don't need to create a new project--you can simply create a new source file that is executable. There is a small

Unable to run bonescript files in Cloud9 on BeagleBone

倖福魔咒の 提交于 2019-12-04 16:28:46
I am having trouble using the Cloud9 IDE to run files which use bonescript on a BeagleBone with the pre-installed version of Angstrom Linux. I am using Cloud9 at http://beaglebone.local:3000 in Chrome 18 on OSX 10.7. When I run the Bonescript blinkled.js sample code Cloud9 outputs this error: Output node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Cannot find module '/var/lib/cloud9' at Function._resolveFilename (module.js:326:11) at Function._load (module.js:271:25) at Array.<anonymous> (module.js:430:10) at EventEmitter._tickCallback (node.js:126:26) If

Rails-tutorial Chapter 1: rails server isn't working on Cloud9

空扰寡人 提交于 2019-12-04 08:32:50
问题 https://www.railstutorial.org/book/beginning#sec-rails_server I have reached this step, and I'm using the cloud9 environment. When I run the server as per Listing 1.7 on that tutorial, however, I get this error: myname@rails-tutorial:~/workspace/hello_app $ rails server -p $PORT -b $IP => Booting WEBrick => Rails 4.2.0.beta2 application starting in development on http://0.0.0.0:8080 => Run `rails server -h` for more startup options => Ctrl-C to shutdown server [2014-10-30 21:44:22] INFO

rails server on cloud 9 IDE getting killed

自作多情 提交于 2019-12-04 07:41:36
I am learning ruby on rails from "Ruby on rails tutorial" by Michael Hartl.,I an working on cloud9 IDE.The problem is that after starting server,when I open the link on browser,server is getting killed.Some time home page is bring dispalyed and when i type another link manually,server is getting killed Started GET "/static_pages/about" for 117.213.110.126 at 2014-12-28 15:44:08 +0000 Processing by StaticPagesController#about as HTML Rendered static_pages/about.html.erb within layouts/application (0.5ms) Killed Try to kill all spring process . First you can see all of them like: ps aux and then