Skip to content

Commit ea3e8b3

Browse files
committed
change nprogress-bar color; use db:seed, instead of db:init
1 parent 55eea55 commit ea3e8b3

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ bundle install
2020
cd config
2121
cp config.default.yml config.yml # 将参数修改成自己的参数(注意修改faye token)
2222
bundle exec rake db:schema:load
23-
bundle exec rake db:init # 创建一个管理员用户[email protected]/qwe123
23+
bundle exec rake db:seed # 创建一个管理员用户[email protected]/qwe123
2424
```
2525

2626
注意修改`config/environments`下各环境的邮箱配置,用来发送忘记密码邮件

app/assets/stylesheets/custom.css.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$nprogress-color: #00DD00;
1+
$nprogress-color: #FACA2B;
22
@import 'nprogress';
33
@import 'nprogress-bootstrap';
44

@@ -67,4 +67,4 @@ body {
6767

6868
.simple_form abbr {
6969
color: #FF0000;
70-
}
70+
}

db/seeds.rb

+5
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55
#
66
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
77
# Mayor.create(name: 'Emanuel', city: cities.first)
8+
User.create!(name: "SuperAdmin",
9+
10+
password: "qwe123",
11+
password_confirmation: "qwe123",
12+
role: "admin")

lib/tasks/init.rake

-11
This file was deleted.

0 commit comments

Comments
 (0)