-
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.
🔀 Merge pull request #7 from kaplanPRO/development
version 0.3.0
- Loading branch information
Showing
57 changed files
with
1,610 additions
and
355 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,20 +1,66 @@ | ||
# Rename this file to .env by running: | ||
# cp .env.template .env | ||
|
||
# https://docs.djangoproject.com/en/latest/ref/settings/#std:setting-DEBUG | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-DEBUG | ||
# Uncomment to set to False | ||
#DEBUG=False | ||
|
||
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts | ||
#ALLOWED_HOSTS= | ||
|
||
# https://docs.djangoproject.com/en/dev/ref/settings/#csrf-trusted-origins | ||
# This setting is mandatory for Django>=4.0 | ||
#CSRF_TRUSTED_ORIGINS= | ||
|
||
# Database credentials | ||
DB_NAME= | ||
DB_USER= | ||
DB_PASSWORD= | ||
|
||
# https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-SECRET_KEY | ||
# If you do not set one yourself, it will be configured automatically | ||
# every time the container is started. | ||
#SECRET_KEY= | ||
|
||
# Set to the name of the Docker network | ||
# https://hub.docker.com/r/nginxproxy/nginx-proxy is on | ||
NETWORK_NAME=nginx-proxy | ||
# Defaults to nginx-proxy | ||
#NETWORK_NAME= | ||
|
||
# Optional Settings | ||
|
||
# S3 Storage Settings | ||
#STATICFILES_STORAGE=storages.backends.s3boto3.S3StaticStorage | ||
#FILE_STORAGE=storages.backends.s3boto3.S3Boto3Storage | ||
#S3_ACCESS_KEY_ID= | ||
#S3_SECRET_ACCESS_KEY= | ||
#S3_REGION_NAME= | ||
|
||
# Public bucket for javascript, css, and other static files | ||
#S3_PUBLIC_BUCKET= | ||
|
||
# Defaults to 'static'. No need to change it unless you are using | ||
# one bucket for multiple sites/apps. In which case, you might want | ||
# to set this to something like 'project-name/static' so that the | ||
# projects do not interfere with one another | ||
#S3_PUBLIC_BUCKET_LOCATION= | ||
|
||
# If you want to serve your static files stored in the public bucket | ||
# via Cloudfront, change {0} to your Cloudfront subdomain, and uncomment | ||
#S3_CUSTOM_DOMAIN={0}.cloudfront.net | ||
|
||
# Private bucket for files to be translated | ||
#S3_PRIVATE_BUCKET= | ||
|
||
# Defaults to the root directory. No need to change it unless you | ||
# are using one bucket for multiple sites/apps. In which case, you | ||
# might want to set this to something like 'project-name' so that the | ||
# projects do not interfere with one another | ||
#S3_PRIVATE_BUCKET_LOCATION= | ||
|
||
# No need to change the two below for AWS S3 | ||
#S3_ENDPOINT_URL= | ||
#S3_USE_SSL= | ||
|
||
# Sets the prefix for container names | ||
#PROJECT_NAME= |
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
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
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
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 |
---|---|---|
|
@@ -5,5 +5,6 @@ | |
.tmp | ||
.venv | ||
__pycache__ | ||
db.sqlite3 | ||
projects | ||
Dockerfile |
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 |
---|---|---|
|
@@ -103,6 +103,7 @@ celerybeat.pid | |
|
||
# Environments | ||
.env | ||
.env.web | ||
.venv | ||
db.env | ||
web.env | ||
|
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
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,30 +1,32 @@ | ||
# Kaplan Cloud | ||
|
||
Hello and thank you for giving Kaplan Cloud a try! | ||
Kaplan Cloud is a cloud-based translation management system. | ||
|
||
If you would like help getting set up or try the demo available at [clouddemo.kaplan.pro](https://clouddemo.kaplan.pro), please reach out to contact@kaplan.pro. | ||
The official documentation is available at https://docs.kaplan.pro/projects/kaplan-cloud | ||
|
||
## Deploy with Docker locally | ||
## Local installation with Docker | ||
|
||
First, we need a [Postgres container](https://hub.docker.com/_/postgres) up and running: | ||
Please see [here](https://docs.kaplan.pro/projects/kaplan-cloud/en/latest/installation.html#local-installation-with-docker) | ||
for instructions; however, for testing purposes, all you need to do is first | ||
start a [Kaplan Cloud container](https://hub.docker.com/r/kaplanpro/cloud): | ||
|
||
``` | ||
docker run -d --expose 5432 -e POSTGRES_PASSWORD=postgres -v kaplan-postgres:/var/lib/postgresql/data --restart always --name kaplan-postgres postgres | ||
docker run -d \ | ||
-p 8080:8080 \ | ||
--restart always \ | ||
--name kaplan-cloud \ | ||
kaplanpro/cloud | ||
``` | ||
|
||
Now, let's start a [Kaplan Cloud container](https://hub.docker.com/r/kaplanpro/cloud): | ||
And then create a superuser account: | ||
|
||
``` | ||
docker run -d -p 8080:8080 --link kaplan-postgres -e POSTGRES_HOST=kaplan-postgres -e POSTGRES_PASSWORD=postgres -v kaplan-cloud:/code/kaplancloudapp/projects --restart always --name kaplan-cloud kaplanpro/cloud | ||
``` | ||
|
||
Finally, we need to create a superuser (admin) account for you: | ||
``` | ||
docker exec -it kaplan-cloud python manage.py createsuperuser | ||
``` | ||
|
||
We're done! Head on over to http://0.0.0.0:8080 and explore Kaplan Cloud. | ||
That's it! Head on over to http://0.0.0.0:8080 and explore Kaplan Cloud. | ||
|
||
## Deploy with Docker Compose in a production environment | ||
## Production installation with Docker Compose | ||
|
||
There is a sample Docker Compose configuration available [here](https://github.com/kaplanPRO/kaplan-cloud/tree/main/.docker). | ||
Please see [here](https://docs.kaplan.pro/projects/kaplan-cloud/en/latest/installation.html#production-installation-with-docker-compose) | ||
for instructions. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
Oops, something went wrong.