# \*\* Execute environment rake aborted! Could not find table 'pages'

**URL:** <https://www.ruby-forum.com/t/execute-environment-rake-aborted-could-not-find-table-pages/191036>\
**Category:** Rails\
**Created:** [July 3, 2010, 5:30am UTC](https://www.ruby-forum.com/t/execute-environment-rake-aborted-could-not-find-table-pages/191036 "2010-07-03T05:30:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geirsman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/6f9a4e/32.png) [@Geirsman](https://www.ruby-forum.com/u/Geirsman)\
**Post date:** [July 3, 2010, 5:30am UTC](https://www.ruby-forum.com/t/execute-environment-rake-aborted-could-not-find-table-pages/191036/1 "2010-07-03T05:30:23Z")

</div>

Hey, I’ve googled this pretty thoroughly and saw a couple people with  
the  
same issue but none of the solutions worked for me.

Background: I am trying to upload my Radiant CMS site to Heroku.  
Location: [http://morning-frost-41.heroku.com/](http://morning-frost-41.heroku.com/)  
Problem: Well on Heroku, the thing that really stands out it:

PGError: ERROR: relation “pages” does not exist  
Pages refers to a table within the Archive extension that comes with  
radiant.

Locally, script/server -e production runs with no errors, but  
script/server  
aborts because it can’t find pages.

rake db:migrate fails (and gives me the subject of this letter) but  
rake production db:migrate works…  
rake db:bootstrap fails for pages again (also, I have done a lot of work  
on  
this site so I’m assuming I wouldn’t want to do that anways)

There’s a lot of things I guess I don’t understand conceptually. I  
uncommented the production line in the environment.rb so I thought  
Heroku  
would run in production mode and not have any problems (using Sqlite3  
locally, postgres on heroku).

## pages.yml should be in the correct folder, it’s in the same folder in a clean install of radiant I have elsewhere, where rake db:migrate works fine. I even took the one that was working and used it to replace mine that wasn’t working (don’t know if that’s good or not). Thing is I installed this version of radiant when I didn’t know what I was doing, so I may have made mistakes? I did a bunch of work on it, and now it’s hard for me to figure out what’s wrong or to delete it and start from scratch since i’ve already done work. I really just want to fix it so I can get my website up before i’m dead. Any help would be appreciated!

View this message in context:  
[http://old.nabble.com/\*\*-Execute-environment-rake-aborted!-Could-not-find-table-'pages'-tp29061298p29061298.html](http://old.nabble.com/**-Execute-environment-rake-aborted%21-Could-not-find-table-%27pages%27-tp29061298p29061298.html)  
Sent from the RubyOnRails Users mailing list archive at [Nabble.com](http://Nabble.com).
