Method: Jets::Commands::Import::Rail#finish_message

Defined in:
lib/jets/commands/import/rail.rb

#finish_messageObject



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/jets/commands/import/rail.rb', line 35

def finish_message
  puts <<~EOL
    #{"="*30}
    Congrats! The Rails project from #{@source} has been imported to the rack folder.  Here are some next steps:

    # Local Testing

    Check out the config/routes.rb file and noticed how a new catchall route has been added.  It looks something like this:

        any "*catchall", to: "jets/rack#process"

    The catchall route passes any route not handled by the Jets app as a request onto the Rails app.  You can modified the route to selectively route what you want.

    Please double check that rack/config/database.yml is appropriately configured, it likely needs to be updated.

    Test the application locally. Test that the Rails app in the rack subfolder works independently.  You can start the application up with:

        cd rack # cd into the imported Rails project
        bundle exec rackup

    The rack server starts up on http://localhost:9292

    Once tested, stop that server with CTRL-C.

    Then you can start the jets server from the main jets project:

        cd .. # back to the main jets projet
        jets server # starts both jets and rack servers

    The jets server starts up on http://localhost:8888  You can stop both servers with CTRL-C.

    # Deploy

    When you are ready deploy to AWS Lambda with:

        jets deploy
    EOL
end