Add script/server and other needed changes
This commit is contained in:
Родитель
0cca002d3a
Коммит
d592598ad9
|
@ -0,0 +1 @@
|
|||
web: ./bin/rails server -p 5000
|
|
@ -53,9 +53,9 @@ Alternatively, you can get the book content from a repository on your computer b
|
|||
|
||||
Now you can run the Rails site to take a look.
|
||||
|
||||
$ rails server
|
||||
$ ./script/server
|
||||
|
||||
The site should be running on http://localhost:3000
|
||||
The site should be running on http://localhost:5000
|
||||
|
||||
|
||||
## Testing
|
||||
|
@ -66,7 +66,7 @@ To run the tests for this project, run:
|
|||
|
||||
To run the website for testing purposes, run:
|
||||
|
||||
$ rails server
|
||||
$ ./script/server
|
||||
|
||||
## Contributing
|
||||
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
# script/server: Launch the application and any extra required processes
|
||||
# locally.
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
# ensure everything in the app is up to date.
|
||||
script/update
|
||||
|
||||
test -z "$RACK_ENV" &&
|
||||
RACK_ENV='development'
|
||||
|
||||
# boot the app and any other necessary processes.
|
||||
foreman start -f Procfile.dev
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
# script/update: Update application to run for its current checkout.
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
script/bootstrap
|
||||
|
||||
echo "==> Updating db..."
|
||||
# run all database migrations to ensure everything is up to date.
|
||||
bin/rake db:migrate
|
Загрузка…
Ссылка в новой задаче