Skip to content

Commit

Permalink
Merge pull request #593 from cedarcode/sr--use-bin/setup
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagorodriguez96 authored Nov 27, 2024
2 parents 7d471d0 + 0a8e7bd commit 49c34ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ Sistema de trackeo de materias realizadas para los estudiantes de Computación d
```
$ git clone https://github.com/cedarcode/mi_carrera.git
$ cd mi_carrera/
$ bundle install
$ bin/rails db:setup
$ bin/rails load_yml
$ bin/setup --skip-server
```

### Levantar el servidor
Expand Down
2 changes: 2 additions & 0 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env ruby
exec "./bin/rails", "server", *ARGV
3 changes: 3 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ FileUtils.chdir APP_ROOT do
puts "\n== Preparing database =="
system! 'bin/rails db:prepare'

puts "\n== Populating database with all the subjects =="
system! 'bin/rails load_yml'

puts "\n== Removing old logs and tempfiles =="
system! 'bin/rails log:clear tmp:clear'

Expand Down

0 comments on commit 49c34ec

Please sign in to comment.