-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2adb040
Showing
6 changed files
with
171 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http:https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http:https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
.DS_Store | ||
.idea |
Empty file.
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,57 @@ | ||
# Dopomoha.ro (May 2022) | ||
Latest edition of Dopomoha.ro running SQLite. Tested on MacOS. | ||
* [Strapi 4.2.1](https://docs.strapi.io/) | ||
* Node 14 | ||
* Docker version 20.10.13, build a224086 | ||
|
||
## Getting Started | ||
|
||
* `make build` - build all targets | ||
* `make run` - build all targets | ||
* `make clean` - removes all resources | ||
* `make containers-clean` - remove all container | ||
* `make images-clean` - remove all containers | ||
|
||
### Prerequisites | ||
|
||
[Docker version 20.x.x](https://docs.docker.com/engine/install/) or later | ||
|
||
## Create environment file | ||
|
||
```echo "DEVELOPMENT" >> .env``` | ||
|
||
## Deployment | ||
|
||
TBD, FPO: | ||
|
||
* `deploy` | ||
|
||
## Built With | ||
|
||
* [Dropwizard](http:https://www.dropwizard.io/1.0.2/docs/) - The web framework used | ||
* [Maven](https://maven.apache.org/) - Dependency Management | ||
* [ROME](https://rometools.github.io/rome/) - Used to generate RSS Feeds | ||
|
||
## Contributing | ||
|
||
Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us. | ||
|
||
## Versioning | ||
|
||
We use [SemVer](http:https://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags). | ||
|
||
## Authors | ||
|
||
* **Geoffrey Smith** - *Initial work* - [GitHub](https://github.com/GeoffreySmith) | ||
|
||
See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project. | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details | ||
|
||
## Acknowledgments | ||
|
||
* Hat tip to anyone whose code was used | ||
* Inspiration | ||
* etc |
Empty file.
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,53 @@ | ||
#!/bin/sh | ||
set -ea | ||
|
||
if [ "$*" = "strapi" ]; then | ||
|
||
if [ ! -f "package.json" ]; then | ||
|
||
DATABASE_CLIENT=${DATABASE_CLIENT:-sqlite} | ||
|
||
EXTRA_ARGS=${EXTRA_ARGS} | ||
|
||
echo "Using strapi $(strapi version)" | ||
echo "No project found at /srv/app. Creating a new strapi project ..." | ||
|
||
DOCKER=true strapi new . --no-run \ | ||
--dbclient=$DATABASE_CLIENT \ | ||
--dbhost=$DATABASE_HOST \ | ||
--dbport=$DATABASE_PORT \ | ||
--dbname=$DATABASE_NAME \ | ||
--dbusername=$DATABASE_USERNAME \ | ||
--dbpassword=$DATABASE_PASSWORD \ | ||
--dbssl=$DATABASE_SSL \ | ||
--ts \ | ||
$EXTRA_ARGS | ||
|
||
elif [ ! -d "node_modules" ] || [ ! "$(ls -qAL node_modules 2>/dev/null)" ]; then | ||
|
||
if [ -f "yarn.lock" ]; then | ||
|
||
echo "Node modules not installed. Installing using yarn ..." | ||
yarn install --prod --silent | ||
|
||
else | ||
|
||
echo "Node modules not installed. Installing using npm ..." | ||
npm install --only=prod --silent | ||
|
||
fi | ||
|
||
fi | ||
|
||
if [ "$NODE_ENV" = "production" ]; then | ||
STRAPI_MODE="start" | ||
elif [ "$NODE_ENV" = "development" ]; then | ||
STRAPI_MODE="develop" | ||
fi | ||
|
||
echo "Starting your app (with ${STRAPI_MODE:-develop})..." | ||
exec strapi "${STRAPI_MODE:-develop}" | ||
|
||
else | ||
exec "$@" | ||
fi |
Empty file.