Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

New to ROR , Kill rapns foreground process #168

Closed
zanderisrael opened this Issue · 4 comments

2 participants

@zanderisrael

I got everything running, problem is i want to kill the rapns process, and on the other hand tap back in to the running process feed with ssh.

is this even possible ?

@zanderisrael

Getting this:

root@mx:/var/servers/myapp# rails g rapns
conflict config/initializers/rapns.rb
Overwrite /var/www/sites/zanderisrael/appzander.com/subdomains/ruby/servers/pazam/config/initializers/rapns.rb? (enter "h" for help) [Ynaqdh]

Why?
I want to configure 'rapns.rb' from ssh.

Is there another way? a step by step guide will really help.

@mattconnolly
  1. If you want to kill rapns, you can use the kill command. Find the process id with the ps command.
  2. The conflict you see is common with any rails generator that creates a file when that file already exists. If you want to create a new configuration file from scratch, delete or rename the existing one and run the generator again. Then you can edit the config file yourself.

Also, you should not be running your rails app or generators as root.

@mattconnolly

If rapns is running as a foreground process, you can kill it with CTRL+C. This is common in all unix-like operating systems and is not specific to rails, ruby or rapns. Good luck!

@zanderisrael

Thank you !
When i log in to ssh i type "source etc/profile"
This loads rails .

If i dont do this i can get rails comman not found ... Or somthing like that.

Im on a mac connected thru terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.