cloud9-ide

cloud9 + mongodb + nodejs

爷,独闯天下 提交于 2019-12-14 03:58:03
问题 I using cloud9 ide coding new project. When I deploy on cloudfoundry from cloud9ide. I have error Application failed to start. Please note that CloudFoundry uses a different port to listen to. When calling 'listen()' use it like '.listen(process.env.PORT || process.env.VCAP_APP_PORT)'. This is my source var port = (process.env.VMC_APP_PORT || 3000); var host = (process.env.VCAP_APP_HOST || 'localhost'); var http = require('http'); var env = process.env.VCAP_SERVICES ? JSON.parse(process.env

Running Hello World using Node js Express in cloud 9IDE

眉间皱痕 提交于 2019-12-14 03:46:25
问题 I successfully ran hello world in cloud 9 IDE using node JS express framework by replacing app.listen(3000); to app.listen(process.env.PORT); cloud 9 is asking me to use process.env.IP as the host for the scripts. Which file do I open to replace the host name to process.env.IP? 回答1: You can call listen with an additional parameter like this: app.listen(3000, '192.168.0.100'); or, app.listen(process.env.PORT, process.env.IP); So this should be what you are looking for. Let me know if it works!

Can I use my own domain with c9.io?

左心房为你撑大大i 提交于 2019-12-14 03:45:22
问题 The service (c9.io) is great, but I've been looking through the site and can't find the option to have my own domain instead of the automatic subdomain they assign (I don't necessarily mean free). 回答1: No, you can't. It's a dev environment, so the workspace will also be shutdown at some point if no-one is logged in. Easiest is to deploy to f.e. Heroku or DigitalOcean. 来源: https://stackoverflow.com/questions/25581600/can-i-use-my-own-domain-with-c9-io

bash: :command not found Cloud9 Enviroment

浪尽此生 提交于 2019-12-13 20:54:42
问题 This is my first Ruby development, I'm following through a book thats teaching me to build a Pinterest clone. Everything was working correctly until I logged into the environment today to pick up where I left off. When I try and run the project, or boot up the server, I'm getting this error. bash: :command not found It was working correctly last night when I closed the environment, and I havn't been able to find any information online as to how to fix the problem. Any suggestions would be

Symfony framework on Cloud9

蓝咒 提交于 2019-12-13 20:26:42
问题 Is there a way to setup a Symfony project on Cloud9? I found some articles on creating Yii projects this way, but nothing on Symfony. 回答1: Here you have the answer. https://docs.c9.io/docs/symfony2 I already create one. 回答2: Note : I assume you are currently on an empty project/repository. Run the following commands : Download the composer.phar executable : $ curl -sS https://getcomposer.org/installer | php Create the project on the current folder : $ php composer.phar create-project symfony

node.js: problems with jsdom - jQuery object returns undefined

独自空忆成欢 提交于 2019-12-13 18:29:49
问题 I am interested in doing some server-side DOM manipulations for one of projects, so I decided to take a look at node.js, and at jsdom in particular. I'm completely new to node.js, so probably my mistakes are obvious, but never the less i couldn't find solution for my problem anywhere... First of all i'm running node on Windows locally, and also use online IDE cloud9 It was worth mentioning as i got troubles installing latest jsdom package for node (which is 0.2.15), because a required

Run CouchDB in the background on Cloud9

て烟熏妆下的殇ゞ 提交于 2019-12-13 05:06:30
问题 I want to create a cloud9 automated setup script for an application, which uses couchdb for database. Part of the script, is the setup of the application database, which needs couchdb running, in order to function properly. The problem is that the only available solution about couchdb on cloud9 helps you instantiate couchdb as a foreground procedure. So if you want to test the correctness of the instantiation, or execute any other command you need to open a second terminal tab as documented

How to handle Twilio postbacks in Cloud9 IDE dev server?

佐手、 提交于 2019-12-12 21:07:13
问题 I'm building a Rails app in Cloud9 IDE, and part of the application involves interactive voice response. The end-user calls the Twilio phone number, and then Twilio POSTs into the Rails app. The app is working fine when deployed on Heroku, but the deployment process is an extra step. I would like to point Twilio directly at the app running in Cloud9, but it doesn't work. Cloud9 requires one to be logged in to access the dev-server URL, and Twilio can't log in. Is there a way to tell Cloud9

How to add a image to cloud9?

泄露秘密 提交于 2019-12-12 12:31:24
问题 I have googled and searched for this but I need help. I feel really stupid because I have been using ide's for awhile. Just not cloud based. So how do I add a local image to my cloud9 html page? 回答1: You could upload your image online then use href to use the online link. Otherwise, if you'd still like your image to be local, you can upload files to your workspace like this. I hope this helps :) 回答2: you can also use a simple save and drag method. save the image in your images folder on your

Using mailcatcher in cloud9 ide

放肆的年华 提交于 2019-12-12 06:07:30
问题 I'd like to use mailcatcher to preview emails without sending them in my Cloud9 environment. I've started up the mailcatcher daemon but can't access the server. I'm guessing it's simply that port 1080 is not accessible in my environment. Does anyone know how I might get this set up? 回答1: To start mailcatcher and access it on Cloud9 mailcatcher --http-port $PORT --http-ip $IP and you can access it from https://project_name-username.c9.io/ If you want to kill the same process, list it using and