Problem with deploy in Heroku

2

I'm using Maven, Java, JSF, Primefaces, Hibernate, MySQL, CDI and Tomcat 8 on the local machine to create the app. Now I'm trying to climb and I'm having a hard time getting the project up on Heroku.

I created Procfile.txt in the project root:

web: java $JAVA_OPTS -jar target/dependency/webapp-runner.jar --port $PORT target/*.war

I added the maven plugin:

            <plugin>
            <groupId>com.heroku.sdk</groupId>
            <artifactId>heroku-maven-plugin</artifactId>
            <version>1.2.0</version>
            <configuration>
                <appName>lojapdv</appName>
            </configuration>
        </plugin>

I created the app, did the deploy going on the project, right click and in maven-build, in goals I put: heroku heroku: deploy-war and he went up to the heroku. So I went to the page through the link made available by heroku: link , but I'm getting a 404.

Also I could not configure BD, in case I'm using MYSQL and would have to migrate to Postgre which is free, but I'm having a hard time ...

    
asked by anonymous 21.09.2017 / 20:50

1 answer

0

Hello. 1 - The Procfile is without extension. 2 - You can run the local heroku before deploying. Using heroku cli     link 3 - Take a look at this example that I recently uploaded to heroku:     link

Hope it helps

    
21.12.2017 / 07:48