Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jflamy committed Apr 16, 2019
1 parent 9c8c436 commit 8f353ba
Showing 1 changed file with 30 additions and 22 deletions.
52 changes: 30 additions & 22 deletions doc/src/site/markdown/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ OR
java -DdemoMode=true -jar owlcms-4.x.y.jar # to run in demonstration mode
```



## Running on Heroku

### First time setup
Expand All @@ -48,32 +46,42 @@ OR
- Click on the Windows icon at the bottom left and type cmd
Start the windows command prompt window which shows up in the results and perform the following commands

| | |
| ----------------------------- | :--------------------------------------------------------- |
| `heroku login` | |
| `heroku plugins:install java` | (installing the plugin is only needed the very first time) |
```bash
heroku login
heroku plugins:install java # (installing the plugin is only needed the very first time)
```

### Installing a version of owlcms

- Unzip the release to a directory
- Unzip the release to a directory, then

| | |
| ------------------------------------------------------- | ---------------------------------------- |
| `cd` *the_directory_where_you_unzipped_the_files* | |
| `cp demoProcfile Procfile` | (to get demo mode) OR |
| `cp competitionProcfile Procfile` | (to run a real competition) |
| `heroku deploy:jar owlcms-4.X.Y.jar --app myfederation` | (use the real numbers and the real name) |
```bash
cd *the_directory_where_you_unzipped_the_files*
```

Contents of demoProcfile
- Type *one* of the following commands
```bash
cp demoProcfile Procfile # (to get demo mode) OR
cp competitionProcfile Procfile # (to run a real competition)
```
- For information: contents of demoProcfile

```
web: java -D"server.port"=$PORT -DdemoMode=true -jar owlcms-4.X.Y.jar
```
```bash
web: java -D"server.port"=$PORT -DdemoMode=true -jar owlcms-4.X.Y.jar
```

- For information: contents of Procfile

```bash
web: java -D"server.port"=$PORT -jar owlcms-4.X.Y.jar
```

- Use the real numbers and the real name in the following command

```bash
heroku deploy:jar owlcms-4.X.Y.jar --app myfederation
```

Contents of Procfile

```
web: java -D"server.port"=$PORT -jar owlcms-4.X.Y.jar
```
Reference: https://devcenter.heroku.com/articles/deploying-executable-jar-files

Reference: https://devcenter.heroku.com/articles/deploying-executable-jar-files

0 comments on commit 8f353ba

Please sign in to comment.