nitrousio

Repairing Rails and Server and on Nitrous.io

好久不见. 提交于 2020-01-05 08:32:32
问题 I was doing One Month Rails's tutorial on Nitrous.io. At one point, some weird files appeared on my tree, and I deleted them. Everything stopped working. I ran: $ git add . $ git checkout -f and restored the tree. BUT, when I ran: $ rails server I get: action@first-project-48185:~/pinteresting$ rails server -bash: rails: command not found I also tried: $ ruby -v #and got an older version, so I reinstalled it $ rails -v action@first-project-48185:~/pinteresting$ rails -v -bash: rails: command

Repairing Rails and Server and on Nitrous.io

馋奶兔 提交于 2020-01-05 08:32:07
问题 I was doing One Month Rails's tutorial on Nitrous.io. At one point, some weird files appeared on my tree, and I deleted them. Everything stopped working. I ran: $ git add . $ git checkout -f and restored the tree. BUT, when I ran: $ rails server I get: action@first-project-48185:~/pinteresting$ rails server -bash: rails: command not found I also tried: $ ruby -v #and got an older version, so I reinstalled it $ rails -v action@first-project-48185:~/pinteresting$ rails -v -bash: rails: command

Install libraries on nitrous.io

有些话、适合烂在心里 提交于 2020-01-05 04:42:26
问题 I need to install geos, but can't use sudo to run sudo apt-get install libgeos-dev . I can download the source tar file, but don't I need to adjust the --prefix option when I run ./configure ? What do I need to adjust the prefix to? 回答1: You will need to set the prefix, for sure, since you don't have access to the system. You can use $HOME as prefix, or /home/action if you prefer... you can do anything inside user's home directory :) 来源: https://stackoverflow.com/questions/21537515/install

Get error node.js mongodb cannot read property 0 of null for records after successfull insert

故事扮演 提交于 2020-01-03 02:42:12
问题 I used db.collection.insert method to add a document in mongodb with function(err,records) callback. Though insertion succeeds (I checked on mongolab the record), records is null so that It throws error at records[0]._id Is it a node.js bug on nitrous.io which I'm testing ? MongoClient.connect(uri, function (err, db) { if (err) { throw err; } else { console.log("successfully connected to the database"); // Insert document in MongoDb Collection var document = {title:'test',category:'node.js'}

how to see complete log on nitrous.Io console

落花浮王杯 提交于 2019-12-24 17:39:46
问题 i can't visualize the whole log in nitrous.io console , i'm using Meteor , and it's important to me to be able to see the complete log . any suggestions ? 回答1: Regardless of what type of stack your container is set up for, you should be able to use the Ctrl and +/- buttons to scroll through the console. Otherwise you can always use the less command by typing command | less (source) 来源: https://stackoverflow.com/questions/28770868/how-to-see-complete-log-on-nitrous-io-console

Geos installation in non-standard location

一世执手 提交于 2019-12-23 02:54:38
问题 I'm running on nitrous.io and trying to install the rgeo gem using ruby 2.0.0-p353. I don't have sudo access, so I tried to compile and install geos from source. Once I downloaded and untarred the source files, I cd into the source folder and run mkdir /home/action/local && ./configure --prefix=/home/action/local make && make install This runs for a bit. I then run gem install rgeo -- --with-geos-dir=/home/action/local Things look alright, but if I hop into a terminal I get RGeo::Geos

HTTPS (TLS/SSL) server on Nitrous.IO

让人想犯罪 __ 提交于 2019-12-22 11:34:04
问题 May I ask how to create TLS server on Nitrous.IO Boxes? I think what I have to get for that at least are cert.pem and key.pem or something like that. 回答1: Depending on what region you are in, you can get SSL authentication automatically. Will that suffice? http://help.nitrous.io/ssl/ 回答2: For me, https works out of the box. I set my server to listen on port 3000, configured the Nitrous preview port to 3000, and then I can get access via: http://silly-name-121212.nitrousapp.com:3000/ http:/

Robomongo connection with Meteor mongodb

天涯浪子 提交于 2019-12-22 05:24:07
问题 I have connected my localhost mongodb from robomongo but having problem in connecting Meteor mongodb. I am running Meteor from nitrousio not on localhost. In robomongo connection settings, it is showing "Connected to 'meteor_url:3001'. Authorization failed". I am using correct db in Authentication tab and nothing in username and password. Is this the root cause? If yes, what is the default username and pwd of mongodb? If no, then what should i do? 回答1: I set the Robomongo (v 0.8.4) connection

Installing python packages in nitrousio

别等时光非礼了梦想. 提交于 2019-12-21 01:59:25
问题 I've just started trying to use Nitrous.io. I've made a box with python, and am trying to use pip to install a python package called praw. It downloads all of the information fine, but on running the install script, I get an error stating that it could not create a file due to permission restrictions in the /usr directory. Is there any way to get around this as I need the package for my application to work properly. 回答1: You could try pip install --user praw https://pip.pypa.io/en/latest/user

Nitrous Desktop cannot sync files due to unison error

别说谁变了你拦得住时间么 提交于 2019-12-11 11:28:58
问题 I am using Nitrous Desktop (Windows 8.1 x64). Whenever I try to sync, there is an error: Error: server: end_of_file exception raised in loading archive (this indicates a bug) What all I tried: Re-create ssh keys Delete .unison folder What should be done here to sync normally? Any help appreciated ! 回答1: Deleting the .unison folder on the box did the trick. What I was trying to do is to delete the .unison folder on my local machine. 来源: https://stackoverflow.com/questions/27331349/nitrous