TimecardTimecardとはクリエイターが好きな時に好きなだけ働ける環境をサポートする仕組みです。
$ git clone [email protected]:timecard/timecard-rails.git
$ cd timecard-rails/
$ bundle install
$ cp config/database.yml.sample config/database.yml
$ rake db:setup
$ rake assets:precompile RAILS_ENV=production
$ vi config/settings/production.yml # setup Client ID and Client Secret of GitHub and Ruffnote
(callback URL is project root ex: http:/yoursite.example.com/)
https://github.com/settings/applications, https://ruffnote.com/oauth/applications
https://github.com/railsconfig/rails_config
$ git clone [email protected]:timecard/timecard-rails.git
$ cd timecard-rails/
$ heroku create (APP_NAME)
$ heroku addons:add heroku-postgresql
$ heroku config:set HEROKU=true "Settings.services.github.client_id"=CLIENT_ID "Settings.services.github.client_secret"=CLIENT_SECRET "Settings.services.ruffnote.key"=KEY "Settings.services.ruffnote.secret"=SECRET
$ git push heroku master
$ heroku run rake db:migrate
$ heroku open
Installing Fig: http://www.fig.sh/install.html
$ sudo pip install -U fig
deploy
$ fig up -d web $ fig run --rm web bundle exec rake db:setup
test
$ fig up --no-recreate test
shutdown
$ fig kill $ fig rm
Content type
Image
Digest
sha256:38371d0cc…
Size
426.7 MB
Last updated
almost 11 years ago
docker pull michilu/timecard-rails