play framework installation

后端 未结 2 1616
不思量自难忘°
不思量自难忘° 2021-02-14 08:48

I am trying to install play framework 2.0.1 on ubuntu 11. I have added the path to play in ubuntu, I have SUN JRE 1.6 configured (java/javac) and I have given read/write/execut

相关标签:
2条回答
  • 2021-02-14 08:57

    If you really want to run play in opt on your dev machine, you would probably want to chown /opt to yourself.

    sudo chown yourself:yourself /opt
    

    I don't believe this makes sense and has implications to other things in /opt and to the usual purpose of the /opt directory. Unlike typical web server environments, play has an embedded server (like nodejs). In addition, as noted before, there is a heck of a lot of file generation when you prepare a project to run. For development, I think it is always best install play in a directory you own by default like your home directory. In production, you would install and start everything as root making /opt a viable option. Also, in windows using directories requiring administrative access would require as much, if not more, unwise change. Play does not officially support windows in production mode.

    0 讨论(0)
  • 2021-02-14 09:14

    If you check the documentation you will see this warning:

    extract the archive to a location where you have both read and write access (...) Running play writes some files to directories within the archive, so don’t install to /opt, /usr/local or anywhere else you’d need special permission to write to.

    0 讨论(0)
提交回复
热议问题