Felender Hlungwani

Joined

2,500 Experience
0 Lessons Completed
3 Questions Solved

Activity

Posted in rails generate devise:install hangs

I resolved the problem by doing the following:

gem uninstall fileutils
Successfully uninstalled fileutils-1.1.0
gem update --default
Updating installed gems
Updating fileutils
Fetching: fileutils-1.1.0.gem (100%)
Successfully installed fileutils-1.1.0

Posted in rails generate devise:install hangs

I ran into this issue today whilst I was trying to deploy jumpstart template into my Rails 5.2.1 App

When I ran rails generate devise:install nothing happened. No errors, no output – nothing. Normally, this completes in seconds. In the end I aborted the rails generate task with a Ctrl-C. I noticed that the following output was barfed out to the screen:

generate  devise:install

/Users/felendernukeri/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/fileutils.rb:90: warning: already initialized constant FileUtils::VERSION
/Users/felendernukeri/.rvm/gems/ruby-2.5.1/gems/fileutils-1.1.0/lib/fileutils.rb:92: warning: previous definition of VERSION was here
/Users/felendernukeri/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/fileutils.rb:1188: warning: already initialized constant FileUtils::Entry_::S_IF_DOOR
/Users/felendernukeri/.rvm/gems/ruby-2.5.1/gems/fileutils-1.1.0/lib/fileutils.rb:1267: warning: previous definition of S_IF_DOOR was here
/Users/felendernukeri/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/fileutils.rb:1446: warning: already initialized constant FileUtils::Entry_::DIRECTORY_TERM
/Users/felendernukeri/.rvm/gems/ruby-2.5.1/gems/fileutils-1.1.0/lib/fileutils.rb:1541: warning: previous definition of DIRECTORY_TERM was here
/Users/felendernukeri/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/fileutils.rb:1448: warning: already initialized constant FileUtils::Entry_::SYSCASE
/Users/felendernukeri/.rvm/gems/ruby-2.5.1/gems/fileutils-1.1.0/lib/fileutils.rb:1543: warning: previous definition of SYSCASE was here
/Users/felendernukeri/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/fileutils.rb:1501: warning: already initialized constant FileUtils::OPT_TABLE
/Users/felendernukeri/.rvm/gems/ruby-2.5.1/gems/fileutils-1.1.0/lib/fileutils.rb:1596: warning: previous definition of OPT_TABLE was here
/Users/felendernukeri/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/fileutils.rb:1555: warning: already initialized constant FileUtils::LOW_METHODS
/Users/felendernukeri/.rvm/gems/ruby-2.5.1/gems/fileutils-1.1.0/lib/fileutils.rb:1650: warning: previous definition of LOW_METHODS was here
/Users/felendernukeri/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/fileutils.rb:1562: warning: already initialized constant FileUtils::METHODS
/Users/felendernukeri/.rvm/gems/ruby-2.5.1/gems/fileutils-1.1.0/lib/fileutils.rb:1657: warning: previous definition of METHODS was here
RAILS_ENV=development environment is not defined in config/webpacker.yml, falling back to production environment
Running via Spring preloader in process 11760

Full errors:
https://imgur.com/S5OMubu
https://imgur.com/Lu5uo26
https://imgur.com/0gpv1ey
https://imgur.com/hLckCui

I didn’t think anything of this at first, and assumed I had a dodgy install of devise, or rails or something.

So I uninstalled and reinstalled devise, warden and rails – and reran rails generate devise:install.

Nothing happened. I hit Ctrl-C, and got the same

Posted in Hatchox deploy

The IP is in order I changed it manually when posting the issue 

Posted in Hatchox deploy

Hi Chris, I get this  following error while try to deploy 

-----> Connecting to web-app (000.00.114.236) as root

Net::SSH::Connection::Session::CommandFailed: Command "mkdir -p .hatch" returned exit code 1

Posted in Hatchbox CLI

Hi Chris, 
when are you adding the CLI Feature like heroku one on hatchbox  ?

Posted in New server failed provisioning

Hi Chris, please assist with the following error;

Your server failed provisioning!

Server logs
Region is not available
Make sure you haven't crossed your Droplet limit on Digital Ocean already!

Posted in Hatch login Error

Hi Chris,

I incorrectly set up Two-factor Authentication (enabled) on my Hatch Box Account , now I cant login.
Please Assist

Posted in Hatch Deploy

Hi,
I recently deployed 2 apps on one server, how do I view the second app coz the view site button redirect me to the first app Ive deployed ?

Posted in Two-factor Authentication

Thanks

Posted in Two-factor Authentication

Hi Chris,

please assist with creating a Two-factor Authentication like the one you have on hatch

Thanks

Posted in Order confirmation page in rails

I've been trying to create an order confirmation page for my rails app, and am not quite sure how to go about it in a restful way.

There were a few answers on this question that got me halfway there, but the problem was that I wasn't quite sure how to set up the form in the rails view so that it would take the user to a confirmation page with all their details instead of a create action.

What things should I be doing to direct the user to a confirmation page that shows all the order details?

Thanks!

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.