Coder Social home page Coder Social logo

play2torial's Introduction

play2torial's People

Contributors

jamesward avatar johnywith1n avatar matsev avatar mauriziopz avatar peterbarber avatar stokito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

play2torial's Issues

Compilation error - Create UI for Adding Tasks

using play 2.1.1 I get the following complication error:

error: cannot find symbol
In /home/richard/Play/play2torial/app/controllers/Application.java at line 18.

15 }
16
17 public static Result addTask() {
18 Form form = form(Task.class).bindFromRequest();
19 Task task = form.get();
20 task.save();
21 return redirect(routes.Application.index());
22 }
23

My application java looks like: (as far as I can tell It looks correct).

package controllers;

import play.;
import play.mvc.
;

import views.html.*;
import models.Task;
import play.data.Form;

public class Application extends Controller {

public static Result index() {
    return ok(index.render("hello, world"));
}

public static Result addTask() {
    Form<Task> form = form(Task.class).bindFromRequest();
    Task task = form.get();
    task.save();
    return redirect(routes.Application.index());
}  

}

As far as I can tell I've following the tutorial correctly.

Any thoughts?

Errors when deploying to Heroku

Thank you for the tutorial, this is exceptionally helpful.

I can easily get Play to run on AWS, but I have been unsuccessfully able to deploy on Heroku. I created an account and then followed the steps listed in this tutorial.

If I follow the steps of creating the play2torial and even stop and the base application before doing all the configuration of views (meaning the standard app template), the application produces an error when I run heroku open (after following the deployment steps and creating the Procfile): 2015-03-04T20:33:24.826458+00:00 app[web.1]: bash: target/start: No such file or directory
2015-03-04T20:33:25.639509+00:00 heroku[web.1]: Process exited with status 127.

So since that didn't work for me, I tried to follow the cheat section where I just follow your instructions from (git clone git://github.com/jamesward/play2torial.git) and I receive the following error going that path:

remote: [info] Compiling 1 Scala source to /tmp/scala_buildpack_build_dir/.sbt_home/plugins/target/scal
a-2.9.1/sbt-0.11.3/classes...
remote: [error] error while loading CharSequence, class file '/tmp/scala_buildpack_build_dir/.jdk/jre/l
ib/rt.jar(java/lang/CharSequence.class)' is broken
remote: [error](bad constant pool tag 18 at byte 10)
remote: [error] one error found
remote: [error] {file:/tmp/scala_buildpack_build_dir/.sbt_home/plugins/}default-847120/compile:compile:
Compilation failed
remote: Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
remote: ! ERROR: Failed to run sbt task: update
remote:
remote:
remote: ! Push rejected, failed to compile Play 2.x - Java app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to shielded-beach-5570.
remote:
To https://git.heroku.com/shielded-beach-5570.git
! [remote rejected] origin/java-heroku_update -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/shielded-beach-5570.git'

Of course, after the git, only the two *.md files are pulled down.

Deploying the project using the new sbt-heroku plugin does work (https://www.playframework.com/documentation/2.3.x/ProductionHeroku), however the view looks different from the my local instance as the remote only shows the message "Your new application is ready.". But this looks more like something related to the dist mode because when I run the start bat in the universal directory, it's not able to iframe in the remainder of the getting started content.

Sorry for such a noob question...thanks for the pointers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.