You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Set up Amazon AWS S3 buckets for development as described in [esdb/config/s3.yml.example](https://github.com/dsjoerg/esdb/blob/master/config/s3.yml.example) (only dev and test are needed) and set up buckets and credentials accordingly in `esdb/config/s3.yml`. All buckets need to be [publicly readable](https://ariejan.net/2010/12/24/public-readable-amazon-s3-bucket-policy/) and the replay bucket needs to have [CORS enabled for GET, PUT and POST](http://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html).
14
14
* The app will be on the ip of the vagrant box and uploading a replay should work - otherwise please raise an issue here, so it can be fixed.
15
+
16
+
### Making changes to components
17
+
The components needed to run ggtracker.com are included in this project as submodules. We generally track the `master` branch of the official repos, except for sc2reader, which tracks the `upstream` branch.
18
+
19
+
##### Making changes to `ggtracker`, `esdb` and `ggpyjobs`
20
+
To make a change to `ggtracker`, `esdb` or `ggpyjobs` and testing that they work in your local setup, we recommended that you fork the component to your own github account and add the fork to your working copy of ggtrackerstack like this (using `esdb` forked to `nickelsen` as example):
21
+
* Fork the component on github (e.g. nickelsen/esdb).
22
+
* Go to the ggtrackerstack directory of the component (e.g. ggtracker, esdb or esdb/vendor/ggpyjobs).
23
+
* Set your fork ssh url as the origin remote: `git remote set-url origin [email protected]:nickelsen/esdb.git`.
24
+
* Add the official repo ssh url as the upstream remote: `git remote add upstream [email protected]:dsjoerg/esdb.git`.
25
+
* Check your setup with `git remote -v` - should look like this (with your account instead of nickelsen).
* Once your remotes are set up, you can branch off master of your fork (`git checkout -b <branch-with-fix>`), make your application changes, commit and push to your remote and create a pull-request against the official repo.
33
+
***Note:** If you work on `ggpyjobs`, you need to also make a pull-request to `esdb` to make `esdb` actually use your new and improved version of `ggpyjobs` (we'll hopefully automate this remote tracking at some point).
34
+
* When the official repo changes (e.g. your pull-request is merged), you can update your working copy like this:
35
+
*`git fetch upstream`
36
+
*`git merge upstream/master`
37
+
* You can sync your `master` branch to the `master` branch of the `upstream` like this:
38
+
*`git checkout master`
39
+
*`git fetch upstream`
40
+
*`git merge upstream/master`
41
+
*`git push origin master`
42
+
43
+
##### Making changes to `sc2reader`
44
+
Per default, `sc2reader` is managed by [requirements.txt](https://github.com/dsjoerg/ggpyjobs/blob/master/requirements.txt) in `ggpyjobs`. To work on `sc2reader` it is recommended to use the cloned submodule at the root of `ggtrackerstack` and install that in development mode on the vagrant box by issuing `python setup.py develop` in `/vagrant/sc2reader` after ssh'ing into the vagrant box. Forks and branches are managed as described above.
0 commit comments