https://github.com/burtlo/habitatize
A Ruby web application that generates animated gifs and easily deployed with Habitat
https://github.com/burtlo/habitatize
habitat imagemagick rmagick ruby sinatra
Last synced: over 1 year ago
JSON representation
A Ruby web application that generates animated gifs and easily deployed with Habitat
- Host: GitHub
- URL: https://github.com/burtlo/habitatize
- Owner: burtlo
- Created: 2017-10-09T21:33:48.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T22:51:52.000Z (over 8 years ago)
- Last Synced: 2025-02-10T20:29:09.695Z (over 1 year ago)
- Topics: habitat, imagemagick, rmagick, ruby, sinatra
- Language: Ruby
- Homepage: https://habitat.sh
- Size: 2.14 MB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Habitatize
"Habitatize Yourself" (tm) in this web application.

## Building and Running with Habitat
1. Install [Habitat](https://www.habitat.sh/tutorials/download/)
2. Install [Docker](https://www.docker.com/get-docker)
3. Build the Habitat package and run it
```
$ export HAB_DOCKER_OPTS="-p 8000:8000"
$ hab studio enter
$ build
$ hab svc start YOURORG/habitatize
```
Visit the site in your browser at http://localhost:8000
4. Build the Habitat package and export it to Docker
```
$ hab studio enter
$ build
$ hab pkg export docker YOURORG/habitatize
$ exit
$ docker run -p 9000:9000 YOURORG/habitatize
```
## Building and Running with Ruby
1. Install Ruby.
There are a lot of ways that you can do it for your platform. I leave that information to better resources.
2. Install ImageMagick
Refer to the installing ImageMagick information below. I provide instructions for a few platforms.
3. Install Gems
$ bundle install
4. Run
$ rackup
## Install ImageMagick
Here are are some instructions for installing ImageMagick on a few platforms.
### CentOS
$ sudo yum install ImageMagick-devel ImageMagick-c++-devel
### Mac OSX
Install Homebrew (https://brew.sh/)
$ brew install pkg-config
$ brew install imagemagick@6 && brew link imagemagick@6 --force
### Windows
Install Chocolately (https://chocolatey.org/install)
$ choco install ruby
$ choco install imagemagick --version 6.9.9.9 -PackageParameters InstallDevelopmentHeaders=true