My observation on some hosting/deployment environments & virtual cloud servers which can be used as cost free for development and testing period without any hassle.
Deployment environment. Supports git version controlling. Have their own command line tool. 1GB storage for both DB & files with 512 MB RAM allocated per small gear. SSL support on your app URL. Custom domain support. No payment method needed.
Deployment environment. Supports version controlling. Have their own command line tool. 100MB DB & 2GB RAM per account. You can host/deploy unlimited apps within this resource. Free for ever. SSL support on your app URL. Custom domain support. No payment method needed. A how to tutorial here.
Deployment environment. Supports git version controlling. Have their own command line tool. 10K DB Rows & 512 MB RAM allocated per web dyno. You can host/deploy unlimited apps within this resource. Free for ever. SSL support on your app URL. Custom domain support. No payment method needed.
4. Amazon EC2 micro instance
A full featured virtual private server. Choose the operating system to be installed on it and you are done! Access & manage that VPS through your local machine’s terminal. Install packages, configure different types of environment, create users, deploy your app there. Actually use that remote machine as like you do in your own locac Unix/Windows server system. 8GB storage for whole system purpose with 613 MB RAM including 2 CPU per instance. One year free. Need payment method to be verified while sign up.
5. Amazon Beanstalk
Deployment environment. No need to configure any server from scratch. Just select your app type to be deployed & it will build up an environment to suit your app on background. Have their own command line tool for better managing your app from local machine. Supports version controlling. Uses the micro instance on behind. One year free. Need payment method to be verified while sign up. A how to tutorial here.
More on my mind is pagodabox, joyent etc.
On a previous post we saw how to deploy a PHP application in appfog using appfog CLI. appfog gives you a domain for your newly created aaplication which is not so beautiful at all. Such as (http://YOUR-APP-NAME.aws.af.cm/) or something like that according to your choosen region/infrastructure while creating the app.
Today we will point a godaddy domain to a appfog application. For this you will have to first go to your app under your appfog account. Then select the “Domain Names” from left navigation. Here you can see the domain name already assigned to your application and few more blank fields for domain names to be added.
Also you can see the “DNS instructions for custom domains” below that form. Here it will show what “A” record and “CNAME“ record you should add on your own domain control panel.
I have added www.nuhil.net as the second domain name. Then I added a “A” record and a “CNAME” record under my godaddy domain management panel using the DNS manager.
If you wait few hours after changing the records in your domain end, then this will point the full domain for example http://www.nuhil.net to the appfog application but if you type the naked one like, http://nuhil.net then it will show a 404 not found appfog message. For the solution I did a forwarding under my godaddy account using the “forwarding domain tool” to forward the naked domain to full domain.
This forwarding may cause a change on your “A” record you just created manually according to appfog’s suggestion. But no need to worry. The “CNAME” can take care of all the rest.
Amazon has virtual cloud server (instance) and many other web services. They offers a 1 year free micro tier to be used by anyone who own an international currency Debit/Credit card like Payoneer debit master card. There are several services included with the free tier that can be used along with the EC2 instance without any extra charge. Beanstalk deployment framework is one of the free services you are eligible for.
“For no additional charge, AWS Elastic Beanstalk allows you quickly and easily deploy your Java, PHP, Python, Ruby, and .NET applications using many of the services offered in the free usage tier.” -Amazon. Beanstalk is similar to other deployment frameworks like appfog, pagodabox etc. Moreover if you use Beanstalk then you will still have access to your virtual cloud server in which the deployment will be running. “Behind the scenes, Elastic Beanstalk handles the provisioning of a load balancer and Amazon EC2 resources.” -Amazon. Thats why I prefere Beanstalk than others who are in my knowledge.
In this post we will cover the steps of creating an account for Amazon EC2 free tier, configuring local machine for Amazon CLI tools, creating a sample app locally, creating an elastic beanstalk php environment, deploying a sample php app, creating an Amazon RDS and connecting to it via PHP and mySQL workbench, git version controlling of the deployed app, setting up a custom classified domain to our newly deployed app environment. Tired to read these ? I am sure you will feel best after having this journey 🙂
1. Create an account for Amazon web service from here . You can see the service list that will be included with your free tier for your further using. Note that, the sign up process is simple and you will be asked to provide your card detail on the second step and finally you will have to verify your phone number. You will have to put your phone number then to click “call now” button then a 4 digit pin number will be appeared on your browser. After that an automated call will reach your phone. You should either speak the pin number slowly or input the pin number in your mobile keypad if it supports touchtone functionality. I always spoke the pin after listening the bot girl’s voice 🙂 Continue reading Deploy Application in Amazon Beanstalk inside free EC2 Instance with RDS