Photo by Dziana Hasanbekava
๐ฏ
This file contains hidden or 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
| from app import db | |
| from sqlalchemy import desc, event, func, orm | |
| from sqlalchemy.ext.associationproxy import association_proxy | |
| from sqlalchemy.ext.declarative import declared_attr | |
| from sqlalchemy_utils import ArrowType, auto_delete_orphans | |
| from slugify import slugify_unicode | |
| tags = db.Table('tag_associations', | |
| db.Column('tag_id', db.Integer, db.ForeignKey('tags.id')), | |
| db.Column('article_id', db.Integer, db.ForeignKey('articles.id'))) |
Generally, you will add a git remote for your Heroku app during the Heroku app creation process, i.e. heroku create. However, if you are working on an existing app and want to add git remotes to enable manual deploys, the following commands may be useful.
Note that on Heroku, you must always use master as the destination branch on the remote. If you want to deploy a different branch, you can use the syntax local_branch:destination_branch seen below (in this example, we push the local staging branch to the master branch on heroku.
$ git remote add staging https://git.heroku.com/staging-app.git
People
:bowtie: |
๐ :smile: |
๐ :laughing: |
|---|---|---|
๐ :blush: |
๐ :smiley: |
:relaxed: |
๐ :smirk: |
๐ :heart_eyes: |
๐ :kissing_heart: |
๐ :kissing_closed_eyes: |
๐ณ :flushed: |
๐ :relieved: |
๐ :satisfied: |
๐ :grin: |
๐ :wink: |
๐ :stuck_out_tongue_winking_eye: |
๐ :stuck_out_tongue_closed_eyes: |
๐ :grinning: |
๐ :kissing: |
๐ :kissing_smiling_eyes: |
๐ :stuck_out_tongue: |
