cloud9-ide

How to use grunt serve in Cloud9 IDE?

谁都会走 提交于 2019-12-30 02:09:09
问题 In my Gruntfile.js I have tried to do this: connect: { options: { port: process.env.PORT, hostname: process.env.IP, livereload: 35729 } } I tried to run from Cloud 9 terminal and I get the following: Running "serve" task Running "concurrent:server" (concurrent) task Running "connect:livereload" (connect) task Fatal error: Port 8080 is already in use by another process. Then I have changed my Gruntfile.js to the following: connect: { options: { port: 9000, hostname: process.env.IP, livereload:

What is “translate” keyword do in Ruby

蹲街弑〆低调 提交于 2019-12-25 08:22:49
问题 Short question: What is 'translate' word doing and why it's colored as special in my IDE? Long question: I am doing the Odin Project, and code in 04_pig_latin Ruby and RSpec exercise should look like this: def translate(string) # some code end Per the spec which I need to pass: describe "#translate" do it "translates a word beginning with a vowel" do s = translate("apple") expect(s).to eq("appleay") end end In my Cloud9 IDE the word translate is colored blue (like require or render ), so I

How to `git submodule add` Existing sub Repository?

若如初见. 提交于 2019-12-24 00:54:26
问题 The Question How to add existing sub repository as a submodule in git? The Why I have a private codespace supermodule with submodules scattered randomly: codespace (git repo, private) ├── Archived_projects (git repos) └── Projects ├── project-foo (git repo) └── project-bar (git repo) Sometimes submodules have commits not ready to be pushed. But I want them to be saved while pushing supermodule codespace . codespace is a repo cloned to c9.io workspace or other places. What I Do linus@machine

PostgreSQL: could not connect to server: Connection timed out

戏子无情 提交于 2019-12-23 04:23:42
问题 I've been trying to make the switch to PostgreSQL (from SQLite). I'm developing in the environment of Cloud9. However, on db migration I get the error message : PG::ConnectionBad: could not connect to server: Connection timed out. Is the server running on host "mydomain.c9.io" (IP address) and accepting TCP/IP connections on port 5432? I've been reading all sorts of previously asked questions on this topic but without success. Does anyone see what might be going wrong? Do I perhaps need to

AWS cloud9 timeout when running flask application

≯℡__Kan透↙ 提交于 2019-12-22 14:06:07
问题 Hi all I'm trying to setup a AWS cloud9 environment with flask to develop a web app. I'm new to AWS/ flask, and stuck on an issue. There seems to be an issue between the IDE environment and previewing the application in my browser (I'm using chrome, but have also tried in IE). From app.py: import os from flask import Flask app = Flask(__name__) @app.route('/') def hello(): return 'Hello World' app.run(host=os.getenv('IP', '0.0.0.0'), port=int(os.getenv('PORT', 8080))) if __name__ == '__main__

c9.io - how to find the host address to make a mysql connection in node.js platform

旧城冷巷雨未停 提交于 2019-12-21 05:05:02
问题 I am trying to host my node.js app in Cloud 9 Server. In order to make a mysql connection, I need to know the host address. This page says in a very absurd (I think I am right ) way : Hostname $IP The same local IP as the application you run on Cloud9 But where do I get the local IP from ? Nowhere in the docs I found it. Any idea ? EDIT : I used 127.0.0.1 , 0.0.0.0( from echo $IP in the terminal as suggested in an answer) and the values from hostname -I and curl curlmyip.com in the terminal.

Meteor accounts-twitter unable to get working

二次信任 提交于 2019-12-19 10:18:21
问题 I've been having a go at Meteor. I want to use OAuth to authenticate users on my site as I do not want to implement the login features myself. At the moment my website is very simple. A counter, where you click a button the counter increases by one. The idea being when a user goes to another machine and logs in their count is persisted. I have followed the steps on meteor.com/accounts. meteor add accounts-twitter and meteor add accounts-ui Added {{> loginButtons}} to HTML. In Cloud9 terminal

Meteor with cloud9

岁酱吖の 提交于 2019-12-19 07:39: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

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

此生再无相见时 提交于 2019-12-18 15:53:05
问题 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..

Cloud9 postgres

╄→гoц情女王★ 提交于 2019-12-17 08:53:25
问题 I am trying to set up a postgres database in a Rails app in Cloud9. I have followed the instructions here: https://docs.c9.io/setting_up_postgresql.html and set up a database called cc_database. My database.yml file looks like this: development: adapter: postgresql encoding: SQL_ASCII database: cc_database pool: 5 username: postgres password: password When I run rake db:setup I get the following error: PG::ConnectionBad: FATAL: Peer authentication failed for user "postgres" I am quite new to