Recently I hosted my ruby on the railway app on Amazon EC2. Everything works fine except for my seeds. RB file My seeds rb file has not been executed at the time of hosting. I am also using and I define the first administrator on my seeds. RB file
How can I make Rail Console the first Admission user on admin? Is there any way to open Rail Console on Amazon EC2? I am trying to do this to use putty, but how does it know? Please give me some pointers .. You have an Amazon instance (which I think needs to make a keypair to access you already have it). Ensure that SSH access is enabled in the currently selected security group. You can connect to an Amazon example using Then the CD and run in the app directory ssh -i path / to / keypair.pub ec2. -user@ec2-an-ip-address.compute-1.amazonaws.com
bundle command rake db: seed RAILS_ENV = 'staging' Assuming that you are running an app in the staging environment.
No comments:
Post a Comment