RailsCasts Pro episodes are now free!

Learn more or hide this

Nelson Kelem's Profile

GitHub User: safarista

Site: http://ilinkoln.org

Comments by Nelson Kelem

Avatar

While this tutorial is awesome the way it is, it falls flat at one thing that is more than not going to happen to you

ruby
Hosting Multiple Apps on the same VPS

Please address Capistrano

  1. Initial Server-wide software deploy:install that will not have to repeat for every app. Ex. nginx, postgresql installation tasks etc
  2. Initial Server-wide deploy:setup (configuration) tasks
  3. App specific deploy:cold (configuration) tasks

@ryanb could you see how to do that please.

Avatar

@3dd13

My Procfile looks like this:
Edited after reading your codaholic_chatroom on github

ruby
#app_name/Procfile
faye: rackup private_pub.ru -s thin -p $PORT -e $RACK_ENV

WORKS NOW I CAN SECURE THE CHAT

Just wondering the difference btwn $RAILS_ENV vs $RACK_ENV

Avatar

@3dd13 could you show me your Procfile as your explanation is throwing me off a bit. Is "rakeup -R private_pub.ru" NOTE 'rakeup' a typo? Thanks.

My Procfile looks like this:

ruby
#app_name/Procfile
web: rackup -R private_pub.ru -p $PORT
Avatar

+10 on what you just said.

Probably start changing how we see and think about web servers with js gaining this kinda speed.

Avatar

The code up here is not any good but as frustrating as this gets. I try to host on heroku as it works most of the time.

Running 2 web: processes for the same app is not allowed on heroku. Maybe I understood that wrong. I'll try another type of process but it would help if anyone knows some answers to post them here. Just incase.

Avatar

How do you deploy this on heroku cedar?

ruby
 # Procfile
 web: rackup private_pub.ru -s thin

thats what am thinking but am not sure about it. What do you think?

Avatar

Could you write or refer me to some explanation on how you did it?

Avatar

What are channels and how do you create them? I probably should google this first but then, right place right time to ask?

Avatar

I know this might sound like asking why not use Devise? But how would you implement email sending and verification when a user signs up? Am working on it, but having some troubles with testing.

Avatar

What version of Firefox? Mine is v9 and playing ok so far.

Avatar

How would you apply a :remember_me strategy?

ruby
Rails.application.config.middleware.use Warden::Manager do |manager|
  manager.default_strategies :password, :remember_me
  manager.failure_app = lambda { |env| SessionsController.action(:new).call(env) }
end

...

Warden::Strategies.add(:password) do
  def valid?
    params['email'] && params['password'] || :remember_me
  end

...

end

Any Ideas?