简体   繁体   中英

Getting “.ebextensions” to copy from Visual Studio

The root of my problem is that I want to get HTTPS working for a Blazor app deployed to AWS Elastic Beanstalk. According to all the documentation I'm able to find, I need to add some config files to an ".ebextensions" folder. I've done that. I've marked them with a "Build Action" of "Content" and set "Copy to Output Directory" to "Copy if newer". I've even edited the "csproj" file and set the "CopyToPublishDirectory", trying both "true" and "PreserveNewest". None of these things have helped. The files get copied to the local "bin" folder properly as I'd expect. However, after running the "AWS Toolkit" to publish, the files never seem to make it to the server.

Any ideas?

Thanks in advance!

It turns out the files were being copied all along and are getting applied. I just didn't have enough visibility into the process, and the folder is either hidden or removed after use.

On to the next problem...

Now to get HTTPS actually working !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM