Editing
Hosting A PHP Web Application On AWS
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Updating app code == Source files are located at `/var/app/current/` === AWS Management Console === Zip the entire contents of the project (not including the parent folder). * '''EBS Management Console''' > ''application'' > '''application versions''' * '''Upload''' button ** '''Version label:''' ''name consistent with previous uploads'' ** '''Upload application:''' ''choose the zip file'' * After upload completes select the application version > '''Deploy''' button. ** Select the environment that the code should be deployed to. === EB CLI === ==== Installing eb cli on Mac OS ==== Use pip and not homebrew. ==== Updating app source without Git ==== First initialize the eb environment with <syntaxhighlight lang="sh"> $ eb init </syntaxhighlight> This will prompt for properties of the EB application and environment, and then store the configuration in `./.elasticbeanstalk/config.yml` Edit the config file with the path of the zip file to use for updating the app: <syntaxhighlight lang="yaml"> deploy: path/to/app-source.zip </syntaxhighlight> Zip the project with <syntaxhighlight lang="sh"> $ zip ../app-source.zip -r * .[^.]* </syntaxhighlight> Then from the directory where `.elasticbeanstalk/` is located, deploy with: <syntaxhighlight lang="sh"> $ eb deploy </syntaxhighlight> === PHPStorm === It's possible to create a remote host for the EBS, but it is read-only. * '''Type:''' SFTP * '''SFTP hose:''' ''AWS EC2 Management console > EC2 instnace > IPv4 Public IP'' * '''Root path:''' /var/app/current/ * '''User name:''' ec2-user * '''Auth type:''' Key pair * '''Private key file:''' ''path to .pem file''
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information