2017年9月22日
摘要: 1 先执行如下 heroku run rake db:migrate 阅读全文
posted @ 2017-09-22 13:08 c3tc3tc3t 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 登录 sudo su - postgres psql 1 创建Postgresql新用户,devpg是用户名,密码也是devpg, 不是超级管理员,拥有创建数据库权限,登录权限,继承拥有角色权限 2 \du查看 3 配置rails config/database.yml ,注意host属性和port 阅读全文
posted @ 2017-09-22 11:35 c3tc3tc3t 阅读(335) 评论(0) 推荐(0) 编辑
摘要: https://www.postgresql.org/download/linux/ubuntu/ 1 check Xenial16.04 2 创建文件 /etc/apt/sources.list.d/pgdg.list 添加 deb http://apt.postgresql.org/pub/re 阅读全文
posted @ 2017-09-22 00:51 c3tc3tc3t 阅读(289) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/6040583/cant-find-the-libpq-fe-h-header-when-trying-to-install-pg-gem For Ubuntu systems: sudo apt-get install lib 阅读全文
posted @ 2017-09-22 00:18 c3tc3tc3t 阅读(323) 评论(0) 推荐(0) 编辑