c9.io

“Invalid Host header” when running Angular/cli development server c9.io

99封情书 提交于 2020-05-09 17:56:05
问题 Current command: ng serve --host --public $IP:$PORT Results on my website: Invalid Host header 回答1: The --disable-host-check flag works fine if you need to run from Cloud9. I use the following command: ng serve --open --host $IP --port $PORT --disable-host-check 回答2: You need to specify the host ng serve --port 8080 --host 123.34.56.78 回答3: See this issue Edit the following line in node_modules/webpack-dev-server/lib/Server.js (line 425), change to: return true; I am using cloud9 IDE then run

How do I run Angular.JS 2 for TypeScript on C9.io on port 8080?

痞子三分冷 提交于 2020-01-03 03:09:08
问题 I followed this quick tutorial: https://angular.io/guide/quickstart and build the code on C9.io, but by default it's trying to run on port 3000, and C9.io only allows using ports 8080, 8081, and 8082. So how can I run it on C9.io? Here's my code: https://ide.c9.io/mathieu_roy/angular2-quickstart 回答1: I was dealing with the same issue, instead of creating a bs-config.json which will be discoverable automatically you can create a bs-config.js which will also be discoverable by default and be

Cloud9 + rails + Postgresql usage

做~自己de王妃 提交于 2019-12-20 05:54:14
问题 I can not set up a Rails app using Postgresql for development on Cloud9 (c9.io): the migration does not succeed. Common error: ~/workspace (master) $ rake db:migrate rake aborted! PG::ConnectionBad: could not connect to server: Connection refused Is the server running on host "0.0.0.0" and accepting TCP/IP connections on port 5432? 回答1: Cloud9 does not run PG by defalut. Below is the fast & easy way I use to use Postgresql on C9: 1. Gemfile.rb: gem 'pg' 2. Database.yml: default: &default

Haskell Yesod problems

坚强是说给别人听的谎言 提交于 2019-12-10 17:14:50
问题 someone could help me?! I'm working in a Haskell Yesod site for college on a C9 workspace, I've already installed by command Yesod and update cabal, but when I try "stack build" command, this miserable error message appears: $ stack build aulahaskell-0.0.0: build (lib + exe) Preprocessing library aulahaskell-0.0.0... [ 7 of 13] Compiling Handler.Cliente ( src/Handler/Cliente.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/Handler/Cliente.o ) /home/ubuntu/workspace/web2017/src/Handler

Running selenium in c9

∥☆過路亽.° 提交于 2019-12-07 07:30:43
问题 I am trying to run a python code that uses selenium module. This code ran perfectly with the use of a chromedriver in my PC. I am trying to run it in c9.io. I downloaded the chromedriver 64 bit version and gave permissions as 777 using chmod. Still I can't get it to work However, I get the following error: Traceback (most recent call last): File "/home/ubuntu/workspace/vroniplag/vroni.py", line 119, in <module> op('Aaf') File "/home/ubuntu/workspace/vroniplag/vroni.py", line 104, in op plags

How to add a JSON column in MySQL with Rails 5 Migration

醉酒当歌 提交于 2019-12-07 01:07:42
问题 I'm trying to add a json column in MySQL db by running: class AddStatisticsToPlayerStatistic < ActiveRecord::Migration[5.0] def change add_column :player_statistics, :statistics, :json end end But I'm getting this error when I try to run rake db:migrate Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'json' at line 1: ALTER TABLE `player_statistics` ADD `statistics` json Does anyone know how

Running selenium in c9

空扰寡人 提交于 2019-12-05 12:24:41
I am trying to run a python code that uses selenium module. This code ran perfectly with the use of a chromedriver in my PC. I am trying to run it in c9.io. I downloaded the chromedriver 64 bit version and gave permissions as 777 using chmod. Still I can't get it to work However, I get the following error: Traceback (most recent call last): File "/home/ubuntu/workspace/vroniplag/vroni.py", line 119, in <module> op('Aaf') File "/home/ubuntu/workspace/vroniplag/vroni.py", line 104, in op plags=getplags(cd) File "/home/ubuntu/workspace/vroniplag/vroni.py", line 92, in getplags driver = webdriver

Cloud9 + rails + Postgresql usage

故事扮演 提交于 2019-12-02 11:58:22
I can not set up a Rails app using Postgresql for development on Cloud9 (c9.io): the migration does not succeed. Common error: ~/workspace (master) $ rake db:migrate rake aborted! PG::ConnectionBad: could not connect to server: Connection refused Is the server running on host "0.0.0.0" and accepting TCP/IP connections on port 5432? Cloud9 does not run PG by defalut. Below is the fast & easy way I use to use Postgresql on C9: 1. Gemfile.rb: gem 'pg' 2. Database.yml: default: &default adapter: postgresql encoding: unicode pool: 5 username: my_name password: my_pass host: <%= ENV['IP'] %>

Session not created exception: Chrome version must be >= x.y.z when using Selenium Webdriver with Chrome

五迷三道 提交于 2019-12-01 16:27:09
A few notes that make this tricky are that I'm using c9.io (developing in the cloud) so I use the gem webdrivers to be able to run Chrome with Watir , instead of creating an executable path to the Chrome installed on my device. My code was working until I logged in today and got the error session not created exception: Chrome version must be >= 64.0.3282.0 (Driver info: chromedriver=2.37.543610 (afd36256570660b5a2f0e4dbd1b040f3dcfe9cb5),platform=Linux 4.9.80-c9 x86_64) Relevant parts of gemfile (everything else is stock) gem 'webdrivers' gem 'watir' Code I'm trying to compile def mastersave

Session not created exception: Chrome version must be >= x.y.z when using Selenium Webdriver with Chrome

混江龙づ霸主 提交于 2019-12-01 15:20:50
问题 A few notes that make this tricky are that I'm using c9.io (developing in the cloud) so I use the gem webdrivers to be able to run Chrome with Watir , instead of creating an executable path to the Chrome installed on my device. My code was working until I logged in today and got the error session not created exception: Chrome version must be >= 64.0.3282.0 (Driver info: chromedriver=2.37.543610 (afd36256570660b5a2f0e4dbd1b040f3dcfe9cb5),platform=Linux 4.9.80-c9 x86_64) Relevant parts of