Code Monkey home page Code Monkey logo

spirit-heroku's Introduction

Environment

This project setups latest Spirit with Python 3.8 and PostgreSQL on heroku.

Deploy the app

Deploy

To deploy the app, click the above deploy button.

SMTP Provider

Although Spirit requires a SMTP provider in order to send emails (ie: user activation, password reset, etc), it's possible to try this out without one.

Heroku has many addons but you can also use Gmail's SMTP (it has a daily limit, though) or something like postmark.

Limitations

It's not possible to make persistent changes to the filesystem of a (Dyno) Heroku instance. This means it's not possible to upload files or build the (Whoosh) search index.

There are ways to overcome this: images can be uploaded to AWS S3 (there are many Django apps out there for this) and instead of Whoosh use elastic-search.

Or don't use Heroku ;)

Deploying changes

First install Heroku CLI tool, then clone this repo and associate it to the heroku repo:

$ git clone https://github.com/nitely/spirit-heroku.git
$ cd spirit-heroku
$ heroku git:remote -a my-app-name

Then make the desire changes to the files and deploy it:

$ git add .
$ git commit -am "my changes"
$ git push heroku master

Troubleshooting

If you haven't yet, clone this repo and associate it to the heroku repo:

$ git clone https://github.com/nitely/spirit-heroku.git
$ cd spirit-heroku
$ heroku git:remote -a my-app-name

Then run the following command to show the error log:

$ heroku logs --tail

License

MIT

spirit-heroku's People

Contributors

dependabot[bot] avatar nitely avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spirit-heroku's Issues

Deployment error

There was a deployment error. Something about /app/.heroku/python/bin/pip: No such file or directory. I updated the runtime version to python 3.6 and it's working now.

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.