PENGZhaoqing / HousePricing

HousePricing旨在提供房价的可视化预测,帮助用户更好的评估房产和预测未来的价格(dev)
https://house-pricing.herokuapp.com/
412 stars 180 forks source link

数据问题 #12

Open python-yu opened 6 years ago

python-yu commented 6 years ago

rake aborted! ActiveRecord::NoDatabaseError: FATAL: role "python" does not exist

PENGZhaoqing commented 6 years ago

检查本地数据json数据housedata.json,然后检查postergresql里建表问题

https://stackoverflow.com/questions/41539905/new-rails-install-activerecordnodatabaseerror-fatal-role-does-not-exist?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

python-yu commented 6 years ago

我知道我错哪里了,谢谢你

python-yu commented 6 years ago

管理员登录的账号和密码,可以给吗?

PENGZhaoqing commented 6 years ago

这个是你自己设置的,seed文件里,admin=true就是管理员

User.create(
    name: "彭兆卿",
    email: "admin@housepricing.com",
    password: "password",
    password_confirmation: "password",
    admin: true
)