Code Monkey home page Code Monkey logo

compass's Introduction

Agiliq

This is all the code which powers agiliq.com.

A number of our apps are available at the agiliq.com site, and here via the requirements.txt

Some of our important apps we use are:

  1. Blogango at http://agiliq.com/blog/
  2. Merchant at http://agiliq.com/blog/
  3. Dinette at http://agiliq.com/demo/dinette/
  4. Graphos at http://agiliq.com/demo/graphos/

Patches are welcome and gratefully accepted, for this site and everything else on our Github.

How to use this

  1. Clone this repo.
  2. mkdir logs
  3. cp localsettings.example.py localsettings.py, add correct settings etc.
  4. pip install -r requirements.txt (You use virtualenv, right?)

Deployment

source deploy.sh

deploy.sh deploys the app to heroku and clears the cache.

This uses a custom multi buildpack. Heroku recommends using dj_static to serve static files, which we didn't like, so this is being served on gunicorn behind nginx. (Which is itself behind the heroku router, of course.)

compass's People

Contributors

dhuang avatar shabda avatar tuxcanfly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

compass's Issues

Resolve conflict

When switching between feature branches, sometimes there can be conflict because the same migration number appears in both:

python manage.py migrate baz 0001
- Soft matched migration 0001 to 0001_initial.
Running migrations for baz:
! Migration baz:0002_auto__add_field_foo_bar2
should not have been applied
before baz:0002_auto__add_field_foo_bar1 but was.
InconsistentMigrationHistory: Inconsistent migration history
The following options are available:
    --merge: will just attempt the migration ignoring any potential
    dependency conflicts.

Need to think about a way to resolve this.

Compass fails when the django project isn't the root of the repo

Hi,
I have a git repo in which the django project I'd like to manage isn't the root of the git repo. That is so say, my directory structure looks something like:

/.git
/my_project/
/my_project/apps
/my_project/manage.py
...
/other_stuff/...

When I run git checkout, compass seems to thing the name of the django app containing the migrations is my_project
Otherwise, compass seems to work great. Keep up the good work.

Cheers,
Adam

Support post-merge hook

"This hook is invoked by git merge, which happens when a git pull is done on a local repository. The hook takes a single parameter, a status flag specifying whether or not the merge being done was a squash merge. This hook cannot affect the outcome of git merge and is not executed, if the merge failed due to conflicts." source

As with #2, will definitely need to deal with conflict migrations.

Test with non-clean working directory

For simplicity, we're currently assuming a clean working directory. However, commands such as checkout, reset --hard can potentially lead to data loss if the working directory is not clean. We need to either add a warning, or refuse to run the hook in such case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.