Ruby on Rails Sunday, September 10, 2017

On Sun, Sep 10, 2017 at 9:05 AM, Ben Edwards <login@funkytwig.com> wrote:
> 've been googling for this for a while wit little joy. Maybe I'm using the
> wrong search terms but I'm very surprised there is not a howto guide;(,
>
> What I am trying to work out it how to take a project from development to
> test (and test) and then to production.

Putting your app into production is usually called "deployment"; you
should be able to find lots of references to that, but most Rails apps
use Capistrano (highly recommended).

> Test
> I've seen in a few places that I can basically clone by rails development
> environment to test (including database). I gather this means going to git
> test branch and running some type of rails command to do this (not sure what
> or what I need to setup). All I can work out is I need to setup
> config/environments/test.rb/ & config/database.yml.

"git test branch"? What? Running tests has nothing to do with any
particular git branch. And ideally you'd be writing and running tests
continually throughout development.

> Exporting config Data
> Bit more googling and I found out about 'rails db:seed:dump'
> (http://www.rubydoc.info/gems/seed_dump/0.5.3). So I guess I use something
> like
>
> rake db:seed:dump MODELS=User, RefValue

What are you calling "config data"? It's not usually something that's
associated with the DB.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yC9%3DD5D4Eq8%2BDjn2z5PztHozrie%3DyQZtdXdn09NCn2ffg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment