cloud9-ide

I can't get any ruby gems to work on Cloud9

怎甘沉沦 提交于 2019-12-11 23:47:05
问题 I get gems to work fine on my local machine, but on Cloud9 I keep getting `require': cannot load such file. I've had this problem with multiple gems and I don't know what I'm doing wrong. I have installed the gem, added it to my gem file and did bundle install. It shows in my gem list. Here is the path for it from bundle show /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/test_linker-1.0.1 Here is my environment path GEM PATHS: - /usr/local/rvm/gems/ruby-2.1.5@rails4 - /usr/local/rvm/gems/ruby-2

Storing securely passwords for connection to DB in opensource projects

女生的网名这么多〃 提交于 2019-12-11 20:00:36
问题 Cloud9 is a cool service. IF you create a workspace that is public it will mean that everyone who knows your project url and have an account at cloud9 can browse and download your code. This means that if my project have, for example, connectivity to mongodb, everyone will see login and password to connect to mongo (because it will be in some source file). The only option I can see to store passwords securely ( except making project private) is to somehow add them to environment variables,

Static image file is invisible in node.js/express

旧城冷巷雨未停 提交于 2019-12-11 12:40:48
问题 The following code is an exemple of code to serve static files in express on node.js. If I ask the server a .css file there is no problem, but if I ask an image such as a jpg or png, it loads a white page (no /GET error or anything, a simple white page). In my developer tool in my browser I see the following warning: 1Resource interpreted as Document but transferred with MIME type image/jpeg. How can I fix this? I am using cloud9ide and express 2.4.6 var express = require("express"), app =

Doing Hart's Rails Tutorial, but server won't shut down for me fire it up after updates

ぐ巨炮叔叔 提交于 2019-12-11 12:33:56
问题 I have made some changes to various files, and need to shut down and then restart the server to see them. I am using the Cloud9 railstutorial environment. But I keep getting the same error - "A server is already running". Please see below: darrenbrett:~/workspace/sample_app (filling-in-layout) $ rails server -b $IP -p $PORT => Booting WEBrick => Rails 4.2.2 application starting in development on http://0.0.0.0:8080 => Run `rails server -h` for more startup options => Ctrl-C to shutdown server

XMLHttpRequest cannot load cloud 9 io

给你一囗甜甜゛ 提交于 2019-12-11 12:22:10
问题 I am getting an occasional 'XMLHttpRequest cannot load' error while using the cloud 9 cloud hosted development environment. The full error is 'XMLHttpRequest cannot load https://c9.io/_user_content/authorize?redirect=http%3A%2F%2FprojName-username.c9.io%2Fusers%2Fanswers. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://projName-username.c9.io' is therefore not allowed access.' The error is inconsistent. It has shown up (and not shown up) on various

sending mail in cloud9.io

一笑奈何 提交于 2019-12-11 10:40:01
问题 I am running a sails.js project using nodemailer locally which is working well.Nodemailer use Smtp and Gmail's service.Problem is when i transfer my project on cloud9 it is blocking mail. smtpTransport = nodemailer.createTransport('SMTP', { host: 'smtp.gmail.com', port: 25, service: 'Gmail', auth: { user: model.sender, pass: model.password } }); here is configurations and error is: { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect', stage: 'init' } from

Access an application running in a Docker Container which is running inside an emulated CoreOS in Ubuntu

家住魔仙堡 提交于 2019-12-11 09:56:14
问题 My problem is: I am running an application called Cloud9 inside a container, this application runs at default on localhost:3131, but it is changeable. This Docker Container is running on a CoreOS VM, and the CoreOS VM is running on Ubuntu 14.04 through VirtualBox. What I need is: from the browser on Ubuntu be able to access the Cloud9 application running inside Docker. I have tried several things to work on the Docker Network (Pipeworks, Docker0 settings, VirtualBox settings, etc), but I am

NodeJS app build is successful (Heroku) but Application Error in heroku at the launch

▼魔方 西西 提交于 2019-12-11 08:42:38
问题 I am using Cloud 9 IDE. Build is successful when I do git add . git commit -m "first_commit" git push heroku master its result is this : Counting objects: 3, done. Delta compression using up to 8 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 280 bytes | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Node.js app detected remote: remote: -----> Creating runtime

Cloud9 Hosting specs

烈酒焚心 提交于 2019-12-11 05:19:59
问题 I'm reading this Rails tutorial, which suggests using Cloud9 for the IDE. It also recommends Heroku for hosting your app. It turns out that Cloud9 has built-in hosting of some sort ; every Cloud9 app also has a public URL, and you can run Rails yourself (albeit with Webrick by default). As much as I Google, I can't find any details about the hosting offering Cloud9 provides. Webrick aside, what are the limits on RAM, etc.? I know Cloud9 uses Docker and Ubuntu to build a VM, but I can't find

How to access localhost:1080 on Cloud9

混江龙づ霸主 提交于 2019-12-11 03:29:34
问题 I'm trying to access localhost with specified port on my application on Cloud9 platform. I'm building a ruby on rails app, running a server with command below. rails s -b $IP -p $PORT I have a special occasion where I need to access a different port (not localhost:3000). Does anyone know how to do this? Thanks for the help! 回答1: Cloud9 now has multiple external ports (released a few days ago but not yet documented). You can run a service on port 8081 or 8082 and it will be accessible by