amazon-elastic-beanstalk

AWS Beanstalk | NPM on PHP Platform

我的未来我决定 提交于 2021-01-28 14:40:00
问题 for my project I use AWS elasticbeanstalk. I choosed the AWS preconfigured plattform: "PHP". While the deploy process it should install npm/node and run 'npm encore production' to create a production build of the javascript/vue/scss. I am not sure how to solve this, tried to write container_commands but it didn't work. Do you guys can recommend a way to install npm "the best way" on AWS elasticbeanstalk, while deploying? 回答1: Set Environment Variables like: packages: yum: nodejs: [] npm: []

AWS Beanstalk | NPM on PHP Platform

牧云@^-^@ 提交于 2021-01-28 14:32:52
问题 for my project I use AWS elasticbeanstalk. I choosed the AWS preconfigured plattform: "PHP". While the deploy process it should install npm/node and run 'npm encore production' to create a production build of the javascript/vue/scss. I am not sure how to solve this, tried to write container_commands but it didn't work. Do you guys can recommend a way to install npm "the best way" on AWS elasticbeanstalk, while deploying? 回答1: Set Environment Variables like: packages: yum: nodejs: [] npm: []

ImportError: libGL.so.1: cannot open shared object file: No such file or directory while importing OCC

强颜欢笑 提交于 2021-01-28 14:26:05
问题 I have a Django application which it's deployed to Amazon Elastic Beanstalk(Python 3.7 running on 64bit Amazon Linux 2/3.0.3) . I have installed anaconda and pythonocc-core package by creating a 10_anaconda.config file in .ebextensions folder. 10_anaconda.config; commands: 00_download_conda: command: 'wget https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh' 01_install_conda: command: 'bash Anaconda3-2020.02-Linux-x86_64.sh -b -f -p /anaconda' 02_conda_install_pythonocc:

ImportError: libGL.so.1: cannot open shared object file: No such file or directory while importing OCC

雨燕双飞 提交于 2021-01-28 14:18:58
问题 I have a Django application which it's deployed to Amazon Elastic Beanstalk(Python 3.7 running on 64bit Amazon Linux 2/3.0.3) . I have installed anaconda and pythonocc-core package by creating a 10_anaconda.config file in .ebextensions folder. 10_anaconda.config; commands: 00_download_conda: command: 'wget https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh' 01_install_conda: command: 'bash Anaconda3-2020.02-Linux-x86_64.sh -b -f -p /anaconda' 02_conda_install_pythonocc:

Xmx settings in elasticbean stalk through environment properties

左心房为你撑大大i 提交于 2021-01-28 13:30:54
问题 I had been trying to up the memory of my elastic beanstalk console using JAVA_OPTS in environment settings with values -Xms1G -Xmx3G. Attached is the image on how I have changed the settings. AFter applying the changes and restarting the vm, I do not see the changes refelcted on the server. This is how I am verifying sudo jmap -heap Heap Configuration: MinHeapFreeRatio = 0 MaxHeapFreeRatio = 100 MaxHeapSize = 1035993088 (988.0MB) NewSize = 21495808 (20.5MB) MaxNewSize = 344981504 (329.0MB)

elastic beanstalk cron seem dosen't working

六月ゝ 毕业季﹏ 提交于 2021-01-28 12:16:02
问题 I am trying to deploy a website using Elastic Beanstalk. After crawling every hour and saving it as a .txt file, when the user accesses it, the .txt file loads but it doesn't seem to work. When connected, only the .txt file from the initial deployment is loaded. The current .zip configuration is -.ebextensions >cron-linx.config -static -templates -application.py -Enterprise.txt -requirements.txt -test.py cron-linux.config files: "/etc/cron.d/mycron": mode: "000644" owner: root group: root

Where is my jar in Elastic Beanstalk EC2

两盒软妹~` 提交于 2021-01-28 09:19:32
问题 I'm new to Elastic Beanstalk, but not to AWS. I just spawn new EBS with sample java app (Java SE) and managed to make it run. Since I'm used to create EC2 instance manually, I login into my EC2 but couldn't find where my sample jar app is deployed. My question is: where is my JAR deployed within EC2, in which directory? Best regards, Bromo 回答1: This will be AMI dependent you will need to check the document for the specific AMI you are using. It will either run your app with an embedded

Elastic Beanstalk is causing my Rails 6 app precompiled assets to break when adding/removing ENV variables

ⅰ亾dé卋堺 提交于 2021-01-27 22:41:43
问题 I can make code deployments no problem, everything works just fine. The problem is when I use either the Elastic Beanstalk web configuration form or the EB CLI to add/remove/modify ENV variables. Elastic Beanstalk reports back that the change was made successfully however when I visit the web application in the browser I standard Rails error "Sorry, something went wrong". SSH'ing into the server looking at the log files shows errors related to missing assets. Looking in the "public" folder of

Laravel Passport: Missing keys after deployment to aws

陌路散爱 提交于 2021-01-27 20:06:26
问题 I'm having trouble setting up laravels passport on aws elastic beanstalk. The eb client is set up correctly and I can deploy code changes. No errors are shown. However making requests to laravel results in error 500 afterwards, telling me I'm missing the passport keys in "app/current/storage/oauth-public.key\". Locally everything runs fine. I guess I'm missing the artisan command "php artisan passport:install", so I added it in the composer file: "post-install-cmd": [ "Illuminate\\Foundation\

How to modify NGINX configuration on Deploying app Elastic beanstalk

﹥>﹥吖頭↗ 提交于 2021-01-27 19:12:40
问题 I need to add some locations to nginx.conf so the environment URL points to app.php. I have modified the file using vi. Restarting NGINX it works. But I need this configuration to be load automatically when I use eb deploy . I have read and tried: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html Elasticbeanstalk configuring HTTPS on Single Instance of Python: null values are not allowed in templates How to configure .ebextensions for nginx location