cloud9-ide

Meteor with cloud9

Deadly 提交于 2019-12-01 05:57:11
When trying to run meteor in cloud9 I encounter one of the following errors: Running the older modified version from cloud9 I get the error: No dependency info in bundle. Filesystem monitoring disabled. => Errors prevented startup: Exception while bundling application: Error: Package not found: standard-app-packages at self.api.use (/var/lib/stickshift/532a1c97500446885f0002a8/app-root/data/meteor/tools/bundler.js:113:17) at Array.forEach (native) at Function._.each._.forEach (/var/lib/stickshift/532a1c97500446885f0002a8/app-root/data/meteor/dev_bundle/lib/node_modules/underscore/underscore.js

Set default shell in Cloud9 Terminal [closed]

﹥>﹥吖頭↗ 提交于 2019-12-01 01:28:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I've installed zsh in the Terminal and set it to be my default shell but I'm still logged in running bash. I even get this in a SSH Project to my remote server where zsh is my login shell. What setting in C9 do I have to change? 回答1: I figured it out! It seems C9 runs our login sessions under tmux which has its

How to connect to the process running on 'localhost' that is inside of cloud9 server

a 夏天 提交于 2019-11-30 13:47:26
I have a Javascript project that I work on in cloud9 IDE online , and I wanted to test my code using testem npm module : npmjs.org/package/testem together with libraries like Mocha or Jasmine. I was following this tutorial on net tuts + I have installed the testem npm module , but when I run it using command " testem " in cloud9's terminal window testem asks me to open a new tab in " localhost:7357 " Generally to preview workspace files in cloud9 I would go to https://c9.io/username/folders.../workspace/folders.../index.html Since I am on the cloud9 server, I wanted to know if it is possible

Update node.js version inside Cloud 9 IDE

怎甘沉沦 提交于 2019-11-29 21:29:06
My Cloud 9 workspace is running with Node.Js 0.10. How can I update it to the latest version of Node.Js (today is 0.12.4)? I'm trying to install Node.Js using apt-get but I will always get 0.10 version. UPDATE : Latest version of Cloud 9 workspaces now have preinstalled version 4.1.1 With Cloud 9 you can use NVM to install a new version of Node.js. Just run: nvm install 5.5.0 nvm use 5.5.0 nvm alias default v5.5.0 NVM keeps all the versions so you can switch back whenever you want. See also https://docs.c9.io/v1.0/docs/writing-a-nodejs-app . To improve on Davide Icardi's answer, this installs

How can I highlight multiple lines with Ace?

吃可爱长大的小学妹 提交于 2019-11-29 21:16:11
问题 The old method mentioned in similar questions here is the following: var editor = ace.edit("editor"); var Range = ace.require('ace/range').Range; editor.setReadOnly(true); editor.setTheme("ace/theme/github"); editor.getSession().setMode("ace/mode/javascript"); editor.getSession().addMarker(new Range(1, 0, 15, 0), "ace_active_line", "background"); Unfortunately it doesn't work, as you can see here: http://jsbin.com/acotuv/1/edit Any suggestions? 回答1: seems like signature of the addMarker

Cloud 9 IDE can't connect to database

元气小坏坏 提交于 2019-11-29 17:06:55
I have tried a number of things to connect to my database in cloud 9 but I keep getting similar errors. This is my PHP code: <?php // Create connection $con=mysqli_connect($IP, "$C9_USER", "", "c9"); //(host,username,password,dbname)<- guide for me // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } ?> I took the basic code from w3schools and I used it with a document explaining how cloud 9's mysql database works: https://docs.c9.io/setting_up_mysql.html But I can't seem to connect without getting the follow error: Failed to connect

Rails Tutorial Error With Cloud 9

你离开我真会死。 提交于 2019-11-29 05:11:11
Trying to get this to work, but I'm having trouble. I'm following the instructions at: https://www.railstutorial.org/book/beginning#cha-beginning I get to 1.3.2 and I type: rails server -b $IP -p $PORT Which results in this error instead of WEBrick running: /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/sass-rails-5.0.1/lib/sass/rails/helpers.rb:11:in `<top (required)>': uninitialized constant Sass::Script (NameError) from /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `require' from /usr/local/rvm/gems/ruby-2.1.5@rails4/gems/sass-rails-5.0.1/lib/sass/rails.rb:8

Update node.js version inside Cloud 9 IDE

佐手、 提交于 2019-11-28 19:00:08
问题 My Cloud 9 workspace is running with Node.Js 0.10. How can I update it to the latest version of Node.Js (today is 0.12.4)? I'm trying to install Node.Js using apt-get but I will always get 0.10 version. UPDATE : Latest version of Cloud 9 workspaces now have preinstalled version 4.1.1 回答1: With Cloud 9 you can use NVM to install a new version of Node.js. Just run: nvm install 5.5.0 nvm use 5.5.0 nvm alias default v5.5.0 NVM keeps all the versions so you can switch back whenever you want. See

Cloud-9: How to open a file in the c9-editor from c9-terminal

↘锁芯ラ 提交于 2019-11-28 18:39:21
问题 Is there a way to open a file not from the workspace tree view but from the c9-terminal tab? Background: c9 doesn´t allow me to set the workspace path to / for a user who doesn´t have write access there. But I´d like have a look around and change files outside of the main project directory (virtual hosts, php ini, etc). Using the terminal I can roam around everywhere my user has read access. 回答1: At the moment, the only way to open a file from the terminal is in vim or by using ls and then

Verify if my node.js instance is dev or production

那年仲夏 提交于 2019-11-28 16:36:43
问题 Right now, whenever I want to deploy a node.js server to my production server, I need to change all the IP/DNS/username/password for my various connection to my databases and external APIs. This process is annoying, is there a way to verify if the currently running node.js instance is in cloud9ide or actually my production joyent smartmachine? If I am able to detemrine (in my running code) on which server my node.js instance is running , I'll add a condition that set the values to the prod or