简体   繁体   English

触摸 .env 不起作用,触摸任何东西。js 可以

[英]Touch .env Won't Work, Touch anything.js Does

The Title pretty much sums this issue up, I am trying to create an .env file on my deployed EC2 instance by running touch .env in the CLI for the deployment.标题几乎总结了这个问题,我试图通过在 CLI 中运行touch .env来在我部署的 EC2 实例上创建一个 .env 文件以进行部署。 The command returns no errors, indicating it created the file, but I cannot cd into it, and it does not appear when I run ls .该命令没有返回错误,表明它创建了文件,但我无法cd进入它,并且在我运行ls时它没有出现。 It works totally fine if I try anything that isn't an .env file, so what gives?如果我尝试任何不是 .env 文件的东西,它完全可以正常工作,那么有什么用呢?

touch is for creating an empty file, or updating the access and modification times of an existing file. touch用于创建空文件,或更新现有文件的访问和修改时间。

cd is for changing to a directory. cd用于更改目录。 Don't try to cd into a file, because that is never going to work.不要尝试cd进入文件,因为那永远行不通。

ls without -a does not show any files that start with a .没有-als不显示任何以 . 开头的文件. character.特点。

Try ls -a to see if the .env file exists.尝试ls -a查看.env文件是否存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TinyX使用内置的fbtft触摸屏驱动程序显示显示,但触摸不起作用 - TinyX shows display using builtin fbtft touchscreen driver but touch doesn't work tiny6410的触摸屏在Linux上不起作用 - Touch screen of tiny6410 not work on linux linux支持多点触摸屏吗? - Does linux support multi-touch screen OpenGL代码不会显示任何内容 - OpenGL code won't show anything 删除目录中的所有文件(不要触摸任何文件夹或其中的任何内容) - Remove all files in a directory (do not touch any folders or anything within them) 为什么即使没有人告诉我,QScrollArea仍可以在多点触控上滚动? - Why does QScrollArea scroll on multi-touch even if nobody told it to? linux env命令不能按预期工作? - linux env command does not work as expected? 为什么触摸 - 不返回任何错误,但不创建文件 -? - Why touch - doesn't return any error and yet is not creating the file -? 基本的 C SDL2 程序不能与 TCC 一起工作,而它可以与 GCC (Linux) 一起工作 - Basic C SDL2 program won't work with TCC while it does work with GCC (Linux) rsync究竟是如何工作的? 如果您的文件没有不同,它是否足够智能不传输任何内容? - How exactly does rsync work? Is it smart enough not to transfer anything if your files aren't different?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM