That all looks fine.

Did you get the original warning when you pushed to Heroku? If so you can ignore that because the DATABASE_URL is not really needed at build time.

The Error R12 is just from when the dyno was idled (shut down):
https://devcenter.heroku.com/articles/dyno-idling

No need to worry about that.

Is you app not working when you access it?  Any other errors?

-James


On 04/03/2012 12:00 PM, Jim Weaver wrote:
Thanks for the response:
heroku config shows

DATABASE_URL        =>
postgres://xkdbsyiolx:[email protected]/xkdbsyiolx
<http://xkdbsyiolx:[email protected]/xkdbsyiolx>
JAVA_OPTS           => -Xmx384m
PATH                => .play:.tools:/usr/local/bin:/usr/bin:/bin
PLAY_OPTS           => --%prod -Dprecompiled=true
SHARED_DATABASE_URL =>
postgres://xkdbsyiolx:[email protected]/xkdbsyiolx
<http://xkdbsyiolx:[email protected]/xkdbsyiolx>

heroku addons shows
shared-database:5mb

When I try heroku open I get a blank page and
heroku logs shows as below -- the "Error R12" looks suspicious but it
appears that the right db is being connected to
...
2012-04-03T03:52:34+00:00 heroku[router]: GET
vivid-flower-6277.herokuapp.com/
<http://vivid-flower-6277.herokuapp.com/> dyno=web.1 queue=0 wait=0ms
service=317ms status=200 bytes=0
2012-04-03T04:55:07+00:00 heroku[web.1]: Idling
2012-04-03T04:55:09+00:00 heroku[web.1]: Stopping process with SIGTERM
2012-04-03T04:55:19+00:00 heroku[web.1]: Error R12 (Exit timeout) ->
Process failed to exit within 10 seconds of SIGTERM
2012-04-03T04:55:19+00:00 heroku[web.1]: Stopping process with SIGKILL
2012-04-03T04:55:21+00:00 heroku[web.1]: Process exited with status 137
2012-04-03T04:55:21+00:00 heroku[web.1]: State changed from up to down
2012-04-03T16:52:52+00:00 heroku[web.1]: Unidling
2012-04-03T16:52:52+00:00 heroku[web.1]: State changed from down to created
2012-04-03T16:52:52+00:00 heroku[web.1]: State changed from created to
starting
2012-04-03T16:52:59+00:00 heroku[web.1]: Starting process with command
`play run --http.port=46397 --%prod -Dprecompiled=true`
2012-04-03T16:53:01+00:00 app[web.1]: 16:53:01,249 INFO  ~ Starting /app
2012-04-03T16:53:01+00:00 app[web.1]: 16:53:01,266 INFO  ~ Module crud
is available (/app/modules/crud)
2012-04-03T16:53:01+00:00 app[web.1]: 16:53:01,829 INFO  ~ Application
is precompiled
2012-04-03T16:53:04+00:00 app[web.1]: 16:53:04,812 INFO  ~ Connected to
jdbc:postgresql://ec2-23-21-144-155.compute-1.amazonaws.com/xkdbsyiolx
<http://ec2-23-21-144-155.compute-1.amazonaws.com/xkdbsyiolx>
2012-04-03T16:53:06+00:00 app[web.1]: 16:53:06,386 INFO  ~ Application
'Truckers Against Trafficking' is now started !
2012-04-03T16:53:06+00:00 app[web.1]: 16:53:06,465 INFO  ~ Listening for
HTTP on port 46397 ...
2012-04-03T16:53:07+00:00 heroku[web.1]: State changed from starting to up
2012-04-03T16:53:08+00:00 app[web.1]: 16:53:08,836 INFO  ~ request from
10.5.27.51
2012-04-03T16:53:08+00:00 heroku[router]: GET
vivid-flower-6277.herokuapp.com/
<http://vivid-flower-6277.herokuapp.com/> dyno=web.1 queue=0 wait=0ms
service=302ms status=200 bytes=0





Thanks



On Tue, Apr 3, 2012 at 8:48 AM, James Ward <[email protected]
<mailto:[email protected]>> wrote:

    Make sure you have the DATABASE_URL env var by doing:

    heroku config

    And check that you have the shared-database addon by doing:

    heroku addons

    Let me know if that helps.

    -James



    On 04/02/2012 09:06 PM, jwe4 wrote:

        I'm attempting to deploy a play app to heroku on the free shared
        database.  I get

        ...
              Listening for transport dt_socket at address: 8100
                Apr 3, 2012 2:52:04 AM play.Logger warn
                WARNING: Cannot replace DATABASE_URL in configuration (db=$
        {DATABASE_URL})
                02:52:05,006 INFO  ~ Starting /tmp/build_1xcwhmanrc8yy
                02:52:05,011 INFO  ~ Module crud is available (/tmp/
        build_1xcwhmanrc8yy/modules/__crud)
        ...

        as directed in the tutorial I have added to the end of my
        application.conf

        db=${DATABASE_URL}
        jpa.dialect=org.hibernate.__dialect.PostgreSQLDialect
        jpa.ddl=update


        Any ideas on what I've missed


    --
    You received this message because you are subscribed to the Google
    Groups "Heroku" group.
    To post to this group, send email to [email protected]
    <mailto:[email protected]>.
    To unsubscribe from this group, send email to
    heroku+unsubscribe@__googlegroups.com
    <mailto:heroku%[email protected]>.
    For more options, visit this group at
    http://groups.google.com/__group/heroku?hl=en
    <http://groups.google.com/group/heroku?hl=en>.


--
You received this message because you are subscribed to the Google
Groups "Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.

--
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to