Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mhenke/heroku-railo4

Railo4 on Heroku
https://github.com/mhenke/heroku-railo4

Last synced: 18 days ago
JSON representation

Railo4 on Heroku

Awesome Lists containing this project

README

        

# Railo4 on Heroku

This is a demo app running Railo4 on Heroku

## Create the application
1. Create a directory for your application

```
$ mkdir railo
```

## Setup the application

- Heroku directory: /home/mhenke/git/heroku/railo

1. Download the heroku-railo project and unzip into your Heroku directory:
- This command is ran beneath the Heroku directory in /home/mhenke/git/heroku

```
$ sudo wget -qO- -O tmp.zip https://github.com/mhenke/heroku-railo4/archive/master.zip && unzip -qd . tmp.zip && rm -f tmp.zip && cp -R heroku-railo4-master/* railo && rm -r heroku-railo4-master
```

## Running locally
1. First build within the heroku directory:

```
$ mvn clean package
```

1. Then run command below and see your app at http://localhost:8080

```
$ java -cp target/classes:target/dependency/* com.example.Main
```

## Creating and Deploying the application
1. Initialize git, add, and commit changes

```
$ sudo wget https://raw.github.com/mhenke/heroku-railo4/master/.gitignore
$ git init
$ git add .
$ git commit -m "first commit to heroku"
```

1. Create Heroku application

```
$ heroku create
$ heroku open
```

1. Deploy and see the live demo app at:

```
$ git push heroku master
$ heroku open
```

# Thanks
I have to thank Denny ([email protected]) for helping me figure out the railo repository

# References:
## How to run the jetty embedded server:
http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty#Creating_a_Server
## Install Railo on Jetty:
http://wiki.getrailo.org/wiki/installation:jetty
## URL Rewrite:
http://tuckey.org/urlrewrite/
## Git Related (Examples):
```
$ git remote add heroku [email protected]:project.git
$ git remote rm heroku
```
http://edgar.tumblr.com/post/12610398221/how-to-link-your-git-project-with-an-existing-heroku
## Heroku
### Java on Heroku
http://java.heroku.com/
### Getting Started with Java on Heroku
https://devcenter.heroku.com/articles/java
### Getting Started with Heroku & Eclipse
https://devcenter.heroku.com/articles/getting-started-with-heroku-eclipse