Giter Site home page Giter Site logo

enkai-quiz's Introduction

enkai-quiz

Deploy

はじめに

宴会のクイズコンテンツで利用できるシステムです。

アプリケーションとして提供する機能は下記になります。

  • ユーザー登録機能(nicknameで登録)
  • 回答機能
  • ランキング機能
  • 問題管理機能

問題の出題機能に関しては、本システムのサポート外です。(DVDやpowerpointでやってください。) 以下にherokuで動かす方法について記述します。

本番環境へのデプロイについて

目次

  • アプリケーションコードのデプロイ
  • herokuのaddonの設定
  • 環境変数の設定
  • migrationの設定

アプリケーションコードのデプロイ

git push heroku master

herokuのaddonの設定

heroku addons:add cleardb:ignite --app {APPNAME}

Herokuサーバーの環境変数の設定

heroku config
##=> mysql://bf317b0613a601:[email protected]/heroku_7bcef9df5808462?reconnect=true #存在しない適当なuriです
heroku config:add DB_USER=bf317b0613a601 DB_PASS=241378d0 DB_HOST=us-cdbr-iron-east-01.cleardb.net DB_NAME=heroku_7bcef9df5808462

migrationの設定

heroku run db-migrate up --config migrations/database.json --env prod #production

メモ

一部のURL(/staff/*)では、Basic認証がかかっています 問題の管理機能を/staff/* 以下のルーティングにまとめています。 BASIC認証のID・PWは下記になります。

ID: username-you-like
PW: password-you-like

enkai-quiz's People

Contributors

chocopie116 avatar

Stargazers

Tomonobu Sato avatar Makoto Miyaguchi avatar sa9sha9 avatar Yuuki Shimizu avatar Yuki Shiho avatar Sota Sugiura avatar Genki Sugimoto avatar  avatar Masaki Goto avatar tell-k avatar Satoshi Amemiya avatar

Watchers

 avatar James Cloos avatar

enkai-quiz's Issues

READMEの整備

Herokuのsetupと、クイズコンテンツ利用のためのREADME(画像追加等)のやつを整備する

deploy to herokuを機能させる

app.jsonの記述がおかしいらしい。
以下実際にherokuにデプロイしてみた時のエラーメッセージ

Created App
Configured Environment
Build App
There was an issue building your app. This can mean your app.json's project is not a valid Heroku application. Please ensure your app is deployable to Heroku and try again.

-----> Fetching custom git buildpack... done

 !     Push rejected, no Cedar-supported app detected

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.