This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package garden.bots; | |
import io.vertx.core.json.JsonObject; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
@Path("/hello") | |
public class HelloResource { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package garden.bots; | |
import net.redpipe.engine.core.Server; | |
import io.vertx.core.json.JsonObject; | |
import java.util.Optional; | |
public class Main { | |
public static void main(String[] args) { | |
JsonObject config = new JsonObject(); | |
config.put("http_port", 8080); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package garden.bots; | |
import net.redpipe.engine.resteasy.FileResource; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.PathParam; | |
import javax.ws.rs.core.Response; | |
import java.io.IOException; | |
@Path("/{path:(.*)?}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>Hello World!</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
.container { min-height: 100vh; display: flex; justify-content: center; align-items: center; text-align: center; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package garden.bots; | |
import net.redpipe.engine.core.Server; | |
import io.vertx.core.json.JsonObject; | |
import java.util.Optional; | |
public class Main { | |
public static void main(String[] args) { | |
JsonObject config = new JsonObject(); | |
config.put("http_port", 8080); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>garden.bots</groupId> | |
<artifactId>hello</artifactId> | |
<name>hello</name> | |
<version>1.0-SNAPSHOT</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
├── pom.xml | |
├── src | |
│ ├── main | |
│ │ ├── java | |
│ │ │ └── garden | |
│ │ │ └── bots | |
│ │ │ ├── HelloResource.java | |
│ │ │ └── Main.java | |
│ │ └── resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
@Path("/") | |
public class HelloResource { | |
@GET | |
public String hello() { | |
return "Hello World"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apr 24, 2018 6:55:42 AM org.reflections.Reflections scan | |
INFO: Reflections took 1162 ms to scan 1 urls, producing 14450 keys and 26092 values | |
Apr 24, 2018 6:55:42 AM org.reflections.ReflectionUtils forName | |
WARNING: could not get type for name org.eclipse.jetty.npn.NextProtoNego$ServerProvider from any class loader | |
org.reflections.ReflectionsException: could not get type for name org.eclipse.jetty.npn.NextProtoNego$ServerProvider | |
at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:390) | |
at org.reflections.Reflections.expandSuperTypes(Reflections.java:381) | |
at org.reflections.Reflections.<init>(Reflections.java:126) | |
at io.swagger.jaxrs.config.BeanConfig.classes(BeanConfig.java:276) | |
at io.swagger.jaxrs.config.BeanConfig.scanAndRead(BeanConfig.java:240) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
destroy: | |
stage: 🗑destroy_vm | |
when: manual | |
environment: | |
name: feature/$CI_COMMIT_REF_NAME | |
url: https://$APP_NAME-$CI_COMMIT_REF_SLUG.cleverapps.io | |
except: | |
- master | |
script: | |
- curl https://clever-tools.cellar.services.clever-cloud.com/releases/latest/clever-tools-latest_linux.tar.gz > clever-tools-latest_linux.tar.gz |