在我读完Agile Web Development with Rails之后,我已经开发了自己的网站。
现在我尝试在我租用的linux系统上部署我的项目,但是我不知道如何部署我应该使用的rails.Which服务器?如何连接mysql数据库?
作为一名java开发人员,我知道我可以使用tomcat作为我的服务器,它可以将http请求转换为我自己的对象,并使用jdbc连接到我的mysql数据库。
现在我想知道rails部署的主流环境是什么?
我听说过Lighttpd和FCGI。我可以在产品环境中使用它们吗?
谢谢
我已经部署为VM,并希望确定它是服务器还是工作站。命令
我正在运行以下命令以找到答案:
$ cat /etc/rhel-release
Red Hat Enterprise Linux release 8.2 (Ootpa)
$ rpm -q --whatprovides /etc/redhat-release
redhat-release-8.2-1.0.el8.x86_64
$ uname -as
Linux opus-c-master 4.18.0-193.el8.x86_64 #1 SMP Fri Mar 27 14:35:58 UTC 2020 x86_64 x86_64 x86
我的工作是python应用程序,其中很少涉及python烧瓶api。我正在windows上开发这个程序,并使用postman测试了所有的api。一切都很好。在我的webapp项目中,如果没有目录,我必须创建几个目录,因此我使用以下代码:
if not os.path.isdir("dataset/" + client_name):
# if client name directory is not created, then create it
client_dir = curr_path + '\\' + 'dataset\\'