CommonBike / commonbike-site

Meteor Javascript site for CommonBike
https://common.bike
7 stars 9 forks source link

The developer should be able to deploy to Heroku #103

Closed bartwr closed 6 years ago

bartwr commented 6 years ago

Heroku is a cloud application platform.

A while ago @pve did mention it could be nice to make CommonBike a "Continues Integration" (CI) project. This means: make it easy to deploy, and make new code automatically deploy after automated tests are finished.

I think we could start making deployments more efficient and easier to manage by starting to use Heroku. As long as CommonBike is 'small', this is free. If CommonBike is gaining more users, we can upgrade.

I will do some preparation to bring CommonBike from DigitalOcean (where it's hosted on my account at the moment) to HerokuApp.

pve commented 6 years ago

I already have this working. Whenever there is a deployment to https://github.com/pve/commonbike-site-2 branch develop travis-ci will deploy it to heroku at https://pve-commonbike-site.herokuapp.com/

The big thing is that this will enable automatic testing at Travis. I should be able to clone from a Commonbike site branch, as well as send notifications to the commonbike slack channel.

pve commented 6 years ago

Here is a repo to show you how to do continuous testing with Mocha: https://github.com/pve/meteor-ci-demo which is deployed by https://travis-ci.org/pve/meteor-ci-demo to https://pve-meteor-ci-demo.herokuapp.com/

bartwr commented 6 years ago

@pve Yes, very nice.

I have created a pull request, so we will have this feature in the develop branch of https://github.com/CommonBike/commonbike-site repo as well.

I'll use Mocha tests for new features, so in the future we will have safe automatic deployments.