-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements generated setup bash scripts in Crystal for better cross p…
…latform compatibility. Fixes #872
- Loading branch information
Showing
42 changed files
with
308 additions
and
905 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
system_check: script/system_check && sleep 100000 | ||
system_check: crystal script/system_check.cr | ||
web: lucky watch |
67 changes: 0 additions & 67 deletions
67
fixtures/src_template/expected/script/helpers/function_helpers
This file was deleted.
Oops, something went wrong.
Empty file.
32 changes: 0 additions & 32 deletions
32
fixtures/src_template/expected/script/helpers/text_helpers
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require "./helpers/*" | ||
|
||
notice "Running System Check" | ||
|
||
require "./system_check" | ||
|
||
print_done | ||
|
||
|
||
notice "Installing shards" | ||
run_command "shards", "install" | ||
|
||
if !File.exists?(".env") | ||
notice "No .env found. Creating one." | ||
File.touch ".env" | ||
print_done | ||
end | ||
|
||
notice "Setting up the database" | ||
|
||
run_command "lucky", "db.setup" | ||
|
||
notice "Seeding the database with required and sample records" | ||
run_command "lucky", "db.seed.required_data" | ||
run_command "lucky", "db.seed.sample_data" | ||
|
||
print_done | ||
notice "Run 'lucky dev' to start the app" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require "./helpers/*" | ||
|
||
# Use this script to check the system for required tools and process that your app needs. | ||
# A few helper functions are provided to keep the code simple. See the | ||
# script/helpers/function_helpers.cr file for more examples. | ||
# | ||
# A few examples you might use here: | ||
# * 'lucky db.verify_connection' to test postgres can be connected | ||
# * Checking that elasticsearch, redis, or postgres is installed and/or booted | ||
# * Note: Booting additional processes for things like mail, background jobs, etc... | ||
# should go in your Procfile.dev. | ||
|
||
|
||
## CUSTOM PRE-BOOT CHECKS ## | ||
# example: | ||
# if command_not_running "redis-cli", "ping" | ||
# print_error "Redis is not running." | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
system_check: script/system_check && sleep 100000 | ||
system_check: crystal script/system_check.cr | ||
web: lucky watch |
67 changes: 0 additions & 67 deletions
67
fixtures/src_template__api_only/expected/script/helpers/function_helpers
This file was deleted.
Oops, something went wrong.
Empty file.
32 changes: 0 additions & 32 deletions
32
fixtures/src_template__api_only/expected/script/helpers/text_helpers
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require "./helpers/*" | ||
|
||
notice "Running System Check" | ||
|
||
require "./system_check" | ||
|
||
print_done | ||
|
||
|
||
notice "Installing shards" | ||
run_command "shards", "install" | ||
|
||
if !File.exists?(".env") | ||
notice "No .env found. Creating one." | ||
File.touch ".env" | ||
print_done | ||
end | ||
|
||
notice "Setting up the database" | ||
|
||
run_command "lucky", "db.setup" | ||
|
||
notice "Seeding the database with required and sample records" | ||
run_command "lucky", "db.seed.required_data" | ||
run_command "lucky", "db.seed.sample_data" | ||
|
||
print_done | ||
notice "Run 'lucky dev' to start the app" |
Oops, something went wrong.