bcwik9 / robinhood-on-rails

A web dashboard for the free trading platform Robinhood using Ruby on Rails and a private API
MIT License
151 stars 53 forks source link

auto-update Docker instance after source edits #35

Open klepsydra opened 7 years ago

klepsydra commented 7 years ago

Hello, great work! I too prefer to deploy via Docker.

One minor pet peeve was having to stop, rebuild and run the Docker image after any change in code (or git pull).

Here is my new way to launching, after the initial docker build:


$ cd ~/www/robinhood-on-rails 
$  docker run --name=RobinhoodOnRails  -v $HOME/www/robinhood-on-rails:$HOME/robinhood-on-rails  -dt -p 3222:3000 robinhood-on-rails 

Wherein:

I am unsure how to best adapt into the Dockerfile, etc.

bcwik9 commented 6 years ago

Thanks for posting! As I don't use docker I'll let someone with more experience handle this