https://github.com/mobeets/story-fork
writing stories, tine by forking tweet
https://github.com/mobeets/story-fork
Last synced: 10 days ago
JSON representation
writing stories, tine by forking tweet
- Host: GitHub
- URL: https://github.com/mobeets/story-fork
- Owner: mobeets
- Created: 2014-08-06T20:25:54.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-08-26T19:02:27.000Z (almost 11 years ago)
- Last Synced: 2025-03-02T04:33:38.982Z (over 1 year ago)
- Language: Python
- Homepage: https://mobeets.github.io/story_fork
- Size: 277 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Local set-up:
Install requirements, create heroku app
```
$ sudo pip install -r requirements.txt
$ heroku create --stack cedar
$ heroku apps:rename APPNAME
```
Create .env file with your twitter app keys:
```
TWITTER_CONSUMER_KEY=replace_this
TWITTER_CONSUMER_KEY=replace_this
TWITTER_CONSUMER_KEY=replace_this
TWITTER_CONSUMER_KEY=replace_this
```
Now tell heroku they're in .env
```
$ heroku plugins:install git://github.com/ddollar/heroku-config.git
$ heroku config:push
```
Add a database to your heroku app.
```
$ heroku addons:add heroku-postgresql:dev
Added heroku-postgresql:dev to thu-jehosafet (Free).
Attached as HEROKU_POSTGRESQL_AQUA_URL Database has been created and is available !
This database is empty.
If upgrading, you can transfer ! data from another database with pgbackups:restore.
```
Make sure to replace `HEROKU_POSTGRESQL_AQUA_URL` in case it's different in your case.
```
$ heroku config | grep HEROKU_POSTGRESQL
$ heroku pg:promote HEROKU_POSTGRESQL_AQUA_URL
```
Now, create a local database.
```
$ psql
># CREATE DATABASE test;
># \q
$ foreman start
```