Problem with deploying to Heroku

Asked

Viewed 510 times

4

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 up and I’m having great difficulty getting the project up on Heroku.

created Procfile.txt at the root of the project :

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

added the plugin Maven :

            <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, I made the deploy going in the project, right-clicking and Maven-build, in Goals put : Heroku Heroku:deploy-War and it went up quietly to the Heroku. So I went to access the page through the link provided by Heroku: https://lojapdv.herokuapp.com/, but I’m getting a 404.

I also could not configure the BD, in case I’m using MYSQL and would have to migrate to Postgre which is free, but I’m having a lot of difficulty...

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.