itmth19 / tuberate

0 stars 1 forks source link

ERROR FILE not reachable local host test #8

Closed itmth19 closed 10 years ago

itmth19 commented 10 years ago

I got the message: File to import not found or unreadable: twitter/bootstrap.

Do you know how to solve this? I'm sure that you can test it on your computer so, I think it's my problem so.

ugtkbtk commented 10 years ago

How do you run process? Are you using Mac?

ugtkbtk commented 10 years ago

If you run process on production, you need to pre-compile files.

$ bundle exec rake assets:precompile RAILS_ENV=[development|production]
itmth19 commented 10 years ago

When I run the above command, it returns:

ouldn't find file 'twitter/bootstrap' (in /Users/LeQuangThai/Rails/tuberate/app/assets/javascripts/application.js:17) /Users/LeQuangThai/.rvm/gems/ruby-2.0.0-p247@global/bin/ruby_noexec_wrapper:14:in eval' /Users/LeQuangThai/.rvm/gems/ruby-2.0.0-p247@global/bin/ruby_noexec_wrapper:14:in

' Tasks: TOP => assets:precompile

Yes I'm using a mac.

itmth19 commented 10 years ago

It says that "bad URI(is not URI?): [development]"? is it that I've not set the development for my app folder?

ugtkbtk commented 10 years ago

oh I mean

$ bundle exec rake assets:precompile RAILS_ENV=development

or

$ bundle exec rake assets:precompile RAILS_ENV=production
ugtkbtk commented 10 years ago

ok. now try these commands below. first of all, you need to stop process.

$ bundle install --without production
$ bundle exec rake db:migrate
$ bundle exec rails s

then, let me know your logs.

itmth19 commented 10 years ago

I've figured it out. I change the 'twitter/bootstrap' in both application.js and css.sass into 'bootstrap', it works now? Just because I found in the gemfile no word 'twitter' so:)) Can you explain for me why?

itmth19 commented 10 years ago

I have a question? Why when I see in the https://github.com/anjlab/bootstrap-rails, they are using @import "twitter/bootstrap", but I have to deleted the "twitter" for it to works?

ugtkbtk commented 10 years ago

Oh, wait. I think it is not right way. We use Bootstrap 3 not 2.2.6.

ugtkbtk commented 10 years ago

I commented out "bootstrap-sass" from Gemfile. I add gem "anjlab-bootstrap-rails" instead of it.

itmth19 commented 10 years ago

So how to fix it the right way?

itmth19 commented 10 years ago

I got it!!!! I commented out "bootstrap-sass" again, and then change it back to twitter in both application.js and application.css.sass . Maybe at the first place, I did not restart the server, and I make "bootstrap-sass" effective so, that's why! So sorry!

ugtkbtk commented 10 years ago

no problem ;) can you push fixed code?

itmth19 commented 10 years ago

I've done already:D Could you check?

ugtkbtk commented 10 years ago

I think it works fine. Looks much better isn't it? :)

itmth19 commented 10 years ago

Ya! It's so quick to use bootstrap and sass. I've hread sass before but have never tried. I've a request? I will read through your previous commit, if I don't understand, what should I do to ask you at a specific line? I saw the "+" box function, could I use that to ask you?

ugtkbtk commented 10 years ago

sure. I'll try to response as much as I could.

itmth19 commented 10 years ago

What should I do next? I will learn more about bootstrap, sass and haml before the internship.

ugtkbtk commented 10 years ago

let's try to customize tubes/show page by your taste.

  ​after that, try Devise for accounting. it would be challenging for you.

On Wed, Aug 21, 2013 at 5:55 PM, itmth19 notifications@github.com wrote:

What should I do next? I will learn more about bootstrap, sass and haml before the internship.

Reply to this email directly or view it on GitHub: https://github.com/itmth19/tuberate/issues/8#issuecomment-23003572

itmth19 commented 10 years ago

Ok I got that. Thank you!!