mirror of
https://github.com/bitnami/containers.git
synced 2026-03-19 15:57:46 +08:00
generate sample .gitignore file for application
This commit is contained in:
2
bitnami/express/4/rootfs/dist/.gitignore
vendored
Normal file
2
bitnami/express/4/rootfs/dist/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
node_modules/
|
||||
|
||||
@@ -62,6 +62,11 @@ wait_for_db() {
|
||||
fi
|
||||
}
|
||||
|
||||
add_gitignore_sample() {
|
||||
info "Installing git ignore rules."
|
||||
cp /dist/.gitignore .gitignore
|
||||
}
|
||||
|
||||
add_sample_code() {
|
||||
if ! [[ -n $SKIP_SAMPLE_CODE && $SKIP_SAMPLE_CODE -gt 0 ]]; then
|
||||
info "Adding dist samples."
|
||||
@@ -99,6 +104,7 @@ bootstrap_express_app() {
|
||||
info "Creating express application."
|
||||
express . -f
|
||||
|
||||
add_gitignore_sample
|
||||
add_database_support
|
||||
add_nodemon_support
|
||||
add_sample_code
|
||||
|
||||
Reference in New Issue
Block a user