thanks for helping out.
My app works in localhost but I got below "unexpected token" error after deploying to Heroku. Also, I have the error regarding "favicon.ico" . Heroku log is as follow:
2022-05-02T05:47:55.619466+00:00 heroku[web.1]: Starting process with command `node app.js`
2022-05-02T05:47:56.000000+00:00 app[api]: Build succeeded
2022-05-02T05:47:57.053439+00:00 app[web.1]: /app/app.js:49
2022-05-02T05:47:57.053452+00:00 app[web.1]: return <div>
2022-05-02T05:47:57.053452+00:00 app[web.1]: ^
2022-05-02T05:47:57.053453+00:00 app[web.1]:
2022-05-02T05:47:57.053453+00:00 app[web.1]: SyntaxError: Unexpected token '<'
2022-05-02T05:47:57.053453+00:00 app[web.1]: at Object.compileFunction (node:vm:352:18)
2022-05-02T05:47:57.053454+00:00 app[web.1]: at wrapSafe (node:internal/modules/cjs/loader:1033:15)
2022-05-02T05:47:57.053455+00:00 app[web.1]: at Module._compile (node:internal/modules/cjs/loader:1069:27)
2022-05-02T05:47:57.053455+00:00 app[web.1]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
2022-05-02T05:47:57.053456+00:00 app[web.1]: at Module.load (node:internal/modules/cjs/loader:981:32)
2022-05-02T05:47:57.053456+00:00 app[web.1]: at Function.Module._load (node:internal/modules/cjs/loader:822:12)
2022-05-02T05:47:57.053456+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
2022-05-02T05:47:57.053457+00:00 app[web.1]: at node:internal/main/run_main_module:17:47
2022-05-02T05:47:57.178016+00:00 heroku[web.1]: Process exited with status 1
2022-05-02T05:47:57.240533+00:00 heroku[web.1]: State changed from starting to crashed
2022-05-02T05:48:51.164272+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=secure-tundra-48558.herokuapp.com request_id=b06ff127-684c-407c-a44c-5f2b70ed2506 fwd="1.36.26.158" dyno= connect= service= status=503 bytes= protocol=https
2022-05-02T05:48:53.759984+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=secure-tundra-48558.herokuapp.com request_id=2fd354ff-fc47-442b-812b-050147dd4c63 fwd="1.36.26.158" dyno= connect= service= status=503 bytes= protocol=https
Line 49 error in app.js is referring to below:
const Weather = () => {
return <div> <---- this line 49 with error
<div class="heading col-md-9">
<h5>Weather information for {weather.city}</h5>
<hr></hr>
</div>
<div className="welements col-md-9">
<div className="welement">
<strong>Weather :</strong> {weather.descp}
</div>
<div className="welement">
<strong>Temperature :</strong> {C.toFixed(2)} ℃
</div>
<div className="welement">
<strong>Humidity : </strong>{weather.humidity} %
</div>
<div className="welement">
<strong>Pressure :</strong> {weather.press} mb
</div>
</div>
</div>
}
have you created the Procfile?
if not then:
you need to do the following on your bash console
>cd <project directory>
>touch Procfile
>open Procfile
once you are in the procfile you need to add only single line in it
web: node app.js (or whatever is you index file)
after doing this, try again with the process
>git add .
>git commit -m "you message"
>git push heroku main
PS: also make sure your app.js is in the root directory
add a pair of ()
const Weather = () => {
return (<div>
<div class="heading col-md-9">
<h5>Weather information for {weather.city}</h5>
<hr></hr>
</div>
<div className="welements col-md-9">
<div className="welement">
<strong>Weather :</strong> {weather.descp}
</div>
<div className="welement">
<strong>Temperature :</strong> {C.toFixed(2)} ℃
</div>
<div className="welement">
<strong>Humidity : </strong>{weather.humidity} %
</div>
<div className="welement">
<strong>Pressure :</strong> {weather.press} mb
</div>
</div>
</div>);
}
Related
I got this https://preview.themeforest.net/item/oneui-bootstrap-admin-dashboard-template-ui-framework-angularjs/full_screen_preview/11820082 and I thought to add with inertiajs with vuejs 3 to it.
I installed and run Laravel 8 Starter Kit, but I found that datatables with jquery are used in this app.
As I do not need them I tried to clear them all from my app and in resources/js/app.js I added lines :
require('./bootstrap');
console.log('resources/js/app.js::')
Following rules on installing inertiajs on server and client parts.
import { createApp, h } from 'vue'
import { createInertiaApp } from '#inertiajs/inertia-vue3'
createInertiaApp({
resolve: name => require(`./Pages/${name}`),
setup({ el, App, props, plugin }) {
createApp({ render: () => h(App, props) })
.use(plugin)
.mount(el)
},
})
but after that I got errors in browser console :
laravel.app.js:10 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'dataset')
at exports.createInertiaApp (laravel.app.js:10)
at Module../resources/js/app.js (laravel.app.js:19213)
at __webpack_require__ (laravel.app.js:42957)
at laravel.app.js:43115
at Function.__webpack_require__.O (laravel.app.js:42994)
at laravel.app.js:43122
at laravel.app.js:43124
Any idea why I got this error and how can it be fixed?
UPDATED 1:
I inserted #inertia tag BEFORE , so the bottom of the resources/views/layouts/backend.blade.php has:
...
</div>
</div>
<!-- END Header Search -->
<!-- Header Loader -->
<!-- Please check out the Loaders page under Components category to see examples of showing/hiding it -->
<div id="page-header-loader" class="overlay-header bg-body-extra-light">
<div class="content-header">
<div class="w-100 text-center">
<i class="fa fa-fw fa-circle-notch fa-spin"></i>
</div>
</div>
</div>
<!-- END Header Loader -->
</header>
<!-- END Header -->
<!-- Main Container -->
<main id="main-container">
#yield('content')
</main>
<!-- END Main Container -->
<!-- Footer -->
<footer id="page-footer" class="bg-body-light">
<div class="content py-3">
<div class="row fs-sm">
<div class="col-sm-6 order-sm-2 py-1 text-center text-sm-end">
Crafted with <i class="fa fa-heart text-danger"></i> by <a class="fw-semibold" href="https://1.envato.market/ydb" target="_blank">pixelcave</a>
</div>
<div class="col-sm-6 order-sm-1 py-1 text-center text-sm-start">
<a class="fw-semibold" href="https://1.envato.market/AVD6j" target="_blank">OneUI</a> © <span data-toggle="year-copy"></span>
</div>
</div>
</div>
</footer>
<!-- END Footer -->
</div>
<!-- END Page Container -->
<!-- OneUI Core JS -->
<script src="{{ mix('js/oneui.app.js') }}"></script>
<!-- Laravel Scaffolding JS -->
{{-- <script src="{{ mix('/js/laravel.app.js') }}"></script>--}}
#yield('js_after')
#inertia
</body>
</html>
But I got error :
[2021-12-04 04:49:56] local.ERROR: Undefined variable $page (View: /ProjectLaravelStarterKit/resources/views/layouts/backend.blade.php) {"view":{"view":"/ProjectLaravelStarterKit/resources/views/layouts/backend.blade.php","data":{"errors":"<pre class=sf-dump id=sf-dump-559595542 data-indent-pad=\" \"><span class=sf-dump-note>Illuminate\\Support\\ViewErrorBag</span> {<a class=sf-dump-ref>#333</a><samp data-depth=1 class=sf-dump-expanded>
#<span class=sf-dump-protected title=\"Protected property\">bags</span>: []
</samp>}
</pre><script>Sfdump(\"sf-dump-559595542\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
"}},"exception":"[object] (Facade\\Ignition\\Exceptions\\ViewException(code: 0): Undefined variable $page (View: /ProjectLaravelStarterKit/resources/views/layouts/backend.blade.php) at /ProjectLaravelStarterKit/resources/views/layouts/backend.blade.php:517)
[stacktrace]
#0 /ProjectLaravelStarterKit/resources/views/layouts/backend.blade.php(517): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError()
#1 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(107): require('...')
#2 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(108): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#3 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire()
#4 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(61): Illuminate\\View\\Engines\\PhpEngine->evaluatePath()
#5 /ProjectLaravelStarterKit/vendor/facade/ignition/src/Views/Engines/CompilerEngine.php(37): Illuminate\\View\\Engines\\CompilerEngine->get()
#6 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/View/View.php(139): Facade\\Ignition\\Views\\Engines\\CompilerEngine->get()
#7 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/View/View.php(122): Illuminate\\View\\View->getContents()
#8 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/View/View.php(91): Illuminate\\View\\View->renderContents()
#9 /ProjectLaravelStarterKit/resources/views/dashboard.blade.php(153): Illuminate\\View\\View->render()
#10 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(107): require('...')
#11 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(108): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#12 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire()
#13 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(61): Illuminate\\View\\Engines\\PhpEngine->evaluatePath()
#14 /ProjectLaravelStarterKit/vendor/facade/ignition/src/Views/Engines/CompilerEngine.php(37): Illuminate\\View\\Engines\\CompilerEngine->get()
#15 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/View/View.php(139): Facade\\Ignition\\Views\\Engines\\CompilerEngine->get()
#16 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/View/View.php(122): Illuminate\\View\\View->getContents()
#17 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/View/View.php(91): Illuminate\\View\\View->renderContents()
#18 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\\View\\View->render()
#19 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent()
#20 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/Routing/Router.php(794): Illuminate\\Http\\Response->__construct()
#21 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/Routing/Router.php(763): Illuminate\\Routing\\Router::toResponse()
#22 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/Routing/Router.php(695): Illuminate\\Routing\\Router->prepareResponse()
#23 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#24 /ProjectLaravelStarterKit/vendor/inertiajs/inertia-laravel/src/Middleware.php(82): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#25 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Inertia\\Middleware->handle()
#26 /ProjectLaravelStarterKit/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
What is wrong ?
Thanks!
I have a below html which am trying to test using ruby selenium web driver
<div class="container-fluid container-results">
<div class="result-row" id="0">
<ul>
<li class="process-status-column upload-success-icon">
<svg class="glyphicon-upload-green" viewBox="0 0 100 100">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#doc_upload"></use>
</svg>
</li>
<li class="file-label-column"><span>validated.txt</span></li>
<li class="client-company-column"><span>test-client</span></li>
<li class="reference-column"><span>Ref001</span></li>
</ul>
</div>
<div class="result-row" id="1">
<ul>
<li class="process-status-column upload-error-icon">
<svg class="glyphicon-exclamation" viewBox="0 0 100 100">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#exclamation"></use>
</svg>
</li>
<li class="file-label-column"><span>Error.txt</span>
<div class="attachment-row">This invoice contains an error</div>
</li>
<li class="client-company-column"><span>test-client</span></li>
<li class="reference-column"><span>Ref002</span></li>
</ul>
</div>
<div class="result-row" id="2">
<ul>
<li class="process-status-column upload-pending-icon">
<svg class="glyphicon-spin" viewBox="0 0 100 100">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#refresh"></use>
</svg>
</li>
<li class="file-label-column"><span>Pending.txt</span></li>
<li class="client-company-column"></li>
<li class="reference-column"></li>
</ul>
</div>
</div>
I am trying to find the svg element of any given div id as below in Ruby using selenium web driver
rows = driver.find_elements(:css => "div.container-fluid.container-results >div\##{row_number.to_i-1} >ul >li >a >svg")
But I am getting below exception when am running the script with row number 1
invalid selector: An invalid or illegal selector was specified
(Session info: chrome=57.0.2987.133)
(Driver info: chromedriver=2.28.455520 (cc17746adff54984afff480136733114c6b3704b),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 25 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html
Driver info: org.openqa.selenium.chrome.ChromeDriver
*** Element info: {Using=css selector, value=div.container-fluid.container-results >div#0 >ul >li >a >svg} (org.openqa.selenium.InvalidSelectorException)
[remote server] sun.reflect.GeneratedConstructorAccessor17():-1:in `newInstance'
[remote server] sun.reflect.DelegatingConstructorAccessorImpl():-1:in `newInstance'
[remote server] java.lang.reflect.Constructor():-1:in `newInstance'
[remote server] org.openqa.selenium.remote.ErrorHandler(ErrorHandler.java):206:in `createThrowable'
[remote server] org.openqa.selenium.remote.ErrorHandler(ErrorHandler.java):158:in `throwIfResponseFailed'
[remote server] org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java):678:in `execute'
[remote server] org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java):388:in `findElements'
[remote server] org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java):496:in `findElementsByCssSelector'
[remote server] org.openqa.selenium.By$ByCssSelector(By.java):441:in `findElements'
[remote server] org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java):351:in `findElements'
[remote server] sun.reflect.GeneratedMethodAccessor19():-1:in `invoke'
[remote server] sun.reflect.DelegatingMethodAccessorImpl():-1:in `invoke'
[remote server] java.lang.reflect.Method():-1:in `invoke'
[remote server] org.openqa.selenium.support.events.EventFiringWebDriver$2(EventFiringWebDriver.java):103:in `invoke'
[remote server] com.sun.proxy.$Proxy1():-1:in `findElements'
[remote server] org.openqa.selenium.support.events.EventFiringWebDriver(EventFiringWebDriver.java):177:in `findElements'
[remote server] org.openqa.selenium.remote.server.handler.FindElements(FindElements.java):50:in `call'
[remote server] org.openqa.selenium.remote.server.handler.FindElements(FindElements.java):1:in `call'
[remote server] java.util.concurrent.FutureTask():-1:in `run'
[remote server] org.openqa.selenium.remote.server.DefaultSession$1(DefaultSession.java):176:in `run'
[remote server] java.util.concurrent.ThreadPoolExecutor():-1:in `runWorker'
[remote server] java.util.concurrent.ThreadPoolExecutor$Worker():-1:in `run'
[remote server] java.lang.Thread():-1:in `run'
If I try running $("div.container-fluid.container-results >div#0 >ul >li >a >svg") in my browser console I do see the svg elements but its not working from Ruby, can someone please help me with this?
According to the Selenium documentation :css is not a valid selector for find_elements.
It specified :class, :class_name, :id, :link_text, :link, :partial_link_text, :name, :tag_name, :xpath to be valid selectors.
The :css selector do still work in many situations, however it does not always work as you would expect. For example would div.container-fluid.container-results > div#0 be invalid for selenium, even tho it is valid for the browsers.
You could use xpath or some of the other selectors to get the svg.
If you want to use the css selector to find it, you could use nokogiri, here is an example:
selenium_driver = Selenium::WebDriver.for :chrome
selenium_driver.get("http://stackoverflow.com/")
# do whatever with selenium
doc = Nokogiri::HTML(selenium_driver.page_source)
doc.css("div.container-fluid.container-results >div##{row_number.to_i-1} >ul >li >a >svg")
You are specifying a lot of levels in the CSS selector. From the HTML you posted, it doesn't look like you need them all. Using > in a CSS selector specifies a child where using a space signifies any descendant. Any SVG descendant of the DIV should work. You should be able to use just this
rows = driver.find_elements(:css => "div.container-fluid.container-results svg")
I am trying to find the svg element of any given div id
If this is what you want, you can try this one:
driver.find_element(:id => "the_given_id").find_elements(:tag_name => "svg")
The relevant code causing the problem seems to be this from my view:
<input type="checkbox" id=<%= "#{a[0]}#{ndx}" -%> class="toggle" />
<label for=<%= "#{a[0]}#{ndx}" -%> class="popup-label">
This throws the following error in the Heroku logs:
SyntaxError - /app/views/index.erb:25: syntax error, unexpected ')'
2017-03-17T06:30:26.877056+00:00 app[web.1]: ...buf.concat(( "#{a[0]}#{ndx}" -).to_s); #_out_buf.concat " cl...
2017-03-17T06:30:26.877061+00:00 app[web.1]: /app/views/index.erb:26: syntax error, unexpected ')'
2017-03-17T06:30:26.877057+00:00 app[web.1]: ... ^
2017-03-17T06:30:26.877061+00:00 app[web.1]: ...buf.concat(( "#{a[0]}#{ndx}" -).to_s); #_out_buf.concat " cl...
I initially thought it might be the difference between using WEBrick and Puma, but I swapped them and found no difference. Suggestions?
Please try the below
<input type="checkbox" id="<%= a[0].to_s + ndx.to_s %>" class="toggle" />
<label for="<%= a[0].to_s + ndx.to_s %>" class="popup-label">
I'm trying to render partials in my view and it's breaking heroku, showing "We're sorry, but something went wrong".
It's been driving me mad. I think it's something to do with the asset pipeline, hopefully someone will know what I've done wrong.
Logs
2013-06-23T21:46:58.711440+00:00 app[web.1]:
> ActionView::Template::Error (Missing partial static_pages/gbgsynopsis,
> application/gbgsynopsis with {:locale=>[:en], :formats=>[:html],
> :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}.
> Searched in: 2013-06-23T21:46:58.711440+00:00 app[web.1]: *
> "/app/app/views" 2013-06-23T21:46:58.711440+00:00 app[web.1]: 19:
> <%= image_tag('GBG.jpg', class: "bookcover") %>
> 2013-06-23T21:46:58.711440+00:00 app[web.1]: 20:
> </div> 2013-06-23T21:46:58.711611+00:00 app[web.1]: 22:
> <%= render "gbgsynopsis" %> 2013-06-23T21:46:58.711611+00:00
> app[web.1]: app/views/static_pages/home.html.erb:22:in
> `_app_views_static_pages_home_html_erb__1233625768328599458_70301407659120' 2013-06-23T21:46:59.003669+00:00 heroku[router]: at=info method=GET
> path=/favicon.ico host=readerly.herokuapp.com fwd="86.156.197.140"
> dyno=web.1 connect=1ms service=4ms status=200 bytes=0
Gemfile
source 'https://rubygems.org'
ruby '2.0.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0.rc2'
gem 'bootstrap-sass'
group :development do
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
View
<div class="row-fluid">
<div class="span4">
<%= image_tag('GBG.jpg', class: "bookcover") %>
</div>
<div class="span8">
<%= render "gbgsynopsis" %>
</div>
</div>
The following message is clear:
> ActionView::Template::Error (Missing partial static_pages/gbgsynopsis,
> application/gbgsynopsis with {:locale=>[:en], :formats=>[:html],
> :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}.
Rails can't find your partial. I guess it is in the wrong directory or has the wrong filename (e.g. missing the _ as a first character).
Have a look at http://xyzpub.com/en/ruby-on-rails/3.2/dynamische_webseiten.html#partials for some docu about partials.
I have a site that works completely correctly locally and when I use git push heroku master it seems to work fine, but then when I actually open up the heroku site in my browser I just get a message "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly." I have no idea why this might be happening. Can someone please suggest possible reasons for why this might be happening and where I should begin to debug this problem? (Or if you know right off the bat how to solve it that's even better)
Here is my heroku logs file:
$ heroku logs
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m AND a.attnum > 0 A
ND NOT a.attisdropped
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m ORDER BY a.attnum
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m ):
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m 3: <nav class="round">
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m 4: <ul>
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m 5: <li><%=
link_to "Home", root_path %></li>
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m 6: <% if si
gned_in? %>
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m 7:
<li><%= link_to "Profile", current_user %></li>
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m 8: <% end %
>
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m app/helpers/sessions_helper.rb:
32:in `current_user'
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m app/helpers/sessions_helper.rb:
14:in `signed_in?'
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m app/views/layouts/_header.html.
erb:6:in `_app_views_layouts__header_html_erb___4148554853093522439_33446860__59
0688683808415561'
←[36m2011-06-22T15:04:56+00:00 app[web.1]:←[0m app/views/layouts/application.h
tml.erb:10:in `_app_views_layouts_application_html_erb__576924491411701191_33609
960_2126834257218669256'
←[33m2011-06-22T15:04:56+00:00 heroku[router]:←[0m GET growing-dusk-285.heroku.c
om/favicon.ico dyno=web.1 queue=0 wait=0ms service=4ms status=200 bytes=0
←[36m2011-06-22T16:06:21+00:00 heroku[web.1]:←[0m Idling
←[36m2011-06-22T16:06:28+00:00 heroku[web.1]:←[0m Stopping process with SIGTERM
←[36m2011-06-22T16:06:28+00:00 app[web.1]:←[0m >> Stopping ...
←[36m2011-06-22T16:06:28+00:00 heroku[web.1]:←[0m Process exited
←[36m2011-06-22T16:06:31+00:00 heroku[web.1]:←[0m State changed from up to down
←[32m2011-06-24T18:49:29+00:00 heroku[slugc]:←[0m Slug compilation started
←[35m2011-06-24T18:50:32+00:00 heroku[api]:←[0m Deploy 95e629a by danidickstein#
yahoo.com
←[35m2011-06-24T18:50:32+00:00 heroku[api]:←[0m Release v6 created by danidickst
ein#yahoo.com
←[32m2011-06-24T18:50:32+00:00 heroku[slugc]:←[0m Slug compilation finished
←[36m2011-06-24T18:50:41+00:00 heroku[web.1]:←[0m Unidling
←[36m2011-06-24T18:50:41+00:00 heroku[web.1]:←[0m State changed from down to cre
ated
←[36m2011-06-24T18:50:41+00:00 heroku[web.1]:←[0m State changed from created to
starting
←[36m2011-06-24T18:50:46+00:00 heroku[web.1]:←[0m Starting process with command:
`thin -p 36055 -e production -R /home/heroku_rack/heroku.ru start`
←[36m2011-06-24T18:50:49+00:00 app[web.1]:←[0m >> Thin web server (v1.2.6 codena
me Crazy Delicious)
←[36m2011-06-24T18:50:49+00:00 app[web.1]:←[0m >> Maximum connections set to 102
4
←[36m2011-06-24T18:50:49+00:00 app[web.1]:←[0m >> Listening on 0.0.0.0:36055, CT
RL+C to stop
←[36m2011-06-24T18:50:51+00:00 heroku[web.1]:←[0m State changed from starting to
up
←[36m2011-06-24T18:50:51+00:00 app[web.1]:←[0m
←[36m2011-06-24T18:50:51+00:00 app[web.1]:←[0m
←[36m2011-06-24T18:50:51+00:00 app[web.1]:←[0m Started GET "/" for 74.105.216.15
8 at 2011-06-24 11:50:51 -0700
←[36m2011-06-24T18:50:51+00:00 app[web.1]:←[0m Processing by PagesController#h
ome as HTML
←[36m2011-06-24T18:50:51+00:00 app[web.1]:←[0m Rendered layouts/_stylesheets.htm
l.erb (0.9ms)
←[36m2011-06-24T18:50:51+00:00 app[web.1]:←[0m Rendered layouts/_header.html.erb
(22.0ms)
←[36m2011-06-24T18:50:51+00:00 app[web.1]:←[0m Rendered pages/hom
←[31m←[0m
←[36m2011-06-24T18:50:51+00:00 app[web.1]:←[0m Completed in 31ms
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m ActionView::Template::Error (PGEr
ror: ERROR: relation "users" does not exist
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m : SELECT a.attname, f
ormat_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m FROM pg_attribute a
LEFT JOIN pg_attrdef d
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m ON a.attrelid = d
.adrelid AND a.attnum = d.adnum
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m WHERE a.attrelid = '
"users"'::regclass
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m AND a.attnum > 0 A
ND NOT a.attisdropped
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m ORDER BY a.attnum
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m ):
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m 3: <nav class="round">
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m 4: <ul>
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m 5: <li><%=
link_to "Home", root_path %></li>
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m 6: <% if si
gned_in? %>
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m 7:
<li><%= link_to "Users", users_path %></li>
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m 8:
<li><%= link_to "Profile", current_user %></li>
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m 9:
<li><%= link_to "Account", edit_user_path(current_user) %></li>
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m app/models/user.rb:44:in `authe
nticate_with_salt'
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m app/helpers/sessions_helper.rb:
64:in `user_from_remember_token'
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m app/helpers/sessions_helper.rb:
32:in `current_user'
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m app/helpers/sessions_helper.rb:
14:in `signed_in?'
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m app/views/layouts/_header.html.
erb:6:in `_app_views_layouts__header_html_erb__3980662605318628940_24768820__141
2850422392777162'
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m app/views/layouts/application.h
tml.erb:15:in `_app_views_layouts_application_html_erb___4007788113023272464_250
88460__2801653751615046395'
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m
←[33m2011-06-24T18:50:52+00:00 heroku[router]:←[0m GET growing-dusk-285.heroku.c
om/ dyno=web.1 queue=0 wait=0ms service=137ms status=500 bytes=728
←[33m2011-06-24T18:50:52+00:00 heroku[router]:←[0m GET growing-dusk-285.heroku.c
om/favicon.ico dyno=web.1 queue=0 wait=0ms service=1ms status=200 bytes=0
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m Started GET "/" for 74.105.216.15
8 at 2011-06-24 11:52:40 -0700
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m Processing by PagesController#h
ome as HTML
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m Rendered layouts/_stylesheets.htm
l.erb (0.5ms)
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m Rendered layouts/_header.html.erb
(10.3ms)
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m Rendered pages/home.html.erb with
in layouts/application (11.9ms)
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m Completed in 12ms
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m ActionView::Template::Error (PGEr
ror: ERROR: relation "users" does not exist
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m : SELECT a.attname, f
ormat_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m FROM pg_attribute a
LEFT JOIN pg_attrdef d
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m ON a.attrelid = d
.adrelid AND a.attnum = d.adnum
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m WHERE a.attrelid = '
"users"'::regclass
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m AND a.attnum > 0 A
ND NOT a.attisdropped
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m ORDER BY a.attnum
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m ):
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m 3: <nav class="round">
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m 4: <ul>
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m 5: <li><%=
link_to "Home", root_path %></li>
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m 6: <% if si
gned_in? %>
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m 7:
<li><%= link_to "Users", users_path %></li>
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m 8:
<li><%= link_to "Profile", current_user %></li>
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m 9:
<li><%= link_to "Account", edit_user_path(current_user) %></li>
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m app/helpers/sessions_helper.rb:
64:in `user_from_remember_token'
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m app/models/user.rb:44:in `authe
nticate_with_salt'
←[33m2011-06-24T18:52:40+00:00 heroku[router]:←[0m GET growing-dusk-285.heroku.c
om/ dyno=web.1 queue=0 wait=0ms service=21ms status=500 bytes=728
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m app/helpers/sessions_helper.rb:
32:in `current_user'
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m app/helpers/sessions_helper.rb:
14:in `signed_in?'
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m app/views/layouts/_header.html.
erb:6:in `_app_views_layouts__header_html_erb__3980662605318628940_24768820__141
2850422392777162'
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m app/views/layouts/application.h
tml.erb:15:in `_app_views_layouts_application_html_erb___4007788113023272464_250
88460__2801653751615046395'
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m
←[36m2011-06-24T18:52:40+00:00 app[web.1]:←[0m
←[33m2011-06-24T18:52:40+00:00 heroku[router]:←[0m GET growing-dusk-285.heroku.c
om/favicon.ico dyno=web.1 queue=0 wait=0ms service=4ms status=200 bytes=0
←[36m2011-06-24T18:52:41+00:00 heroku[nginx]:←[0m GET / HTTP/1.1 | 74.105.216.15
8 | 964 | http | 500
The only line in the above log file that says "error" in it this:
←[36m2011-06-24T18:50:52+00:00 app[web.1]:←[0m ActionView::Template::Error (PGEr
ror: ERROR: relation "users" does not exist
What does this mean though? And is that the cause of the problem?
Have you migrated your database on the Heroku side?
heroku rake db:migrate
A similar question can be found here.