Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cvoelcker/clonecademy
This is the BP origin of clonecademy. If you want to contribute to the current project, go to https://github.com/msusenburger/clonecademy
https://github.com/cvoelcker/clonecademy
Last synced: 2 days ago
JSON representation
This is the BP origin of clonecademy. If you want to contribute to the current project, go to https://github.com/msusenburger/clonecademy
- Host: GitHub
- URL: https://github.com/cvoelcker/clonecademy
- Owner: cvoelcker
- License: other
- Created: 2017-05-03T08:33:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-13T08:32:12.000Z (about 7 years ago)
- Last Synced: 2024-11-21T14:21:21.792Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 334 MB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clonecadamy
This is a project for the iGEM Team at TU Darmstadt build during the summer semester "bachelorpraktikum" of the faculty of Computer Science. The developers are four computer science students currently in the final year of our bachelor studies.
## Installation (development)
If you have self package inside your home folder just go on. Otherwise you have to
To install all run `bin/setup_script.sh`. It installes Docker if required and sets links to the /usr/bin folder to start the images from anywhere.`clonecademy_build` builds the docker container for angular and django
`clonecademy_start` starts the containers and if you have atom installed you can add atom as parameter. This will open the folder with atom
`clonecademy_stop` stopps all container.
If you want to start, stop or build single parts you can use `start_angular` `stop_angular` `build_angular` `start_django` `stop_django` `build_django`.
## django
To run a script on django you can user `run_django` and add your script. It is simmilar to `python manag.py`## angular
If you want to run a script on the angular docker use `run_angular`.# Installation (production)
To install the software on your server, you need to have Docker and docker-compose up to date. The installation script is located in `/install/install.sh`. This script links all files correctly (if you want to build a regular makefile, please feal free to create a pull-request).
You should change all settings in the files:
* `settings.py`: You should change the allowed hosts to your local settings.
* `settings-secret.py`: Change all fields
* `docker-compose.yml`: You should change the path of the linked database. The database will be stored in the provided location on the server iself, so that data is kept, even if the docker container is down.
* `angular/environments/environent.ts`: Change production to trueIf you want to run the server, you only need to call `docker-compose up`. This will expose the plattform via port 80. The main page can now be reached via `localhost` and the admin backend of the Django instance via `localhost/api/admin`.
# Update (production)
First, make a backup copy of the database folder. The location was provided by the `docker-compose.yml`. Then, stash your changed files either with git stash or by making a backup copy. If you have kept everything in the git repository, you can quickly check which files have been changed by running `git status`.
Then execute the following commands:
`git pull`
Reload your stashed files.
`./install.sh`
`docker-compose up`Everything should now ork as expected and run in the current version.