While I’m exciting how much productivity was improved while using Ruby on Rails to code my web application, I found that it is quite hard to deploy the app, much harder than any traditional framework I found!
I almost success with Rails application deployment on shared hosting account at HostGator, but when the thing error, I can’t find where to see error logs.
No logs = No way to solve the problem easily.
So, I’ve did some research on Ruby on Rails deployment and found some cool deployment related platform, tools which I would like to list here.
- Heroku – RoR deployment platform
- EngineYard – RoR deployment platform
- Capistrano – tool
- RackspaceCloud – cloud server with ROI in mind in long run
From what I’ve learned and tried…
Nothing easier than Heroku, with just a few Git commands, you can have your app running in 5 minutes!
These are commands you need to use with Heroku.
- gem install heroku (install through RubyGems – sudo if needed)
- heroku create your_app_name (create an application on Heroku)
- git push heroku master (deploy to Heroku)
Your app will be ready at your_app_name.heroku.com.
Anyway, as I’m working in two places, my working room at day using Windows and bed room at night using Mac.
I control my source code through GitHub and first created Heroku app at my Mac.
Everything is fine, app can be deployed and running very quickly, I’m very exciting.
However, today I’ve modified my app at my Windows machine and try to deploy… I found…
- I can push everything into GitHub properly.
- I can not push/deploy to Heroku with the error => fatal: ‘heroku’ does not appear to be a git repositiry
My hair losses for a night after I’ve found a solution.
Let’s discuss about Heroku command.
heroku create your_app_name
This command will try to create an app at Heroku server and seeing if you already had ‘heroku’ repository or not, if ‘heroku’ repository doesn’t exists in your local Git. The command will create the ‘heroku’ repository of the active branch for you.
And this is the reason why I can’t deploy through my Windows machine as I didn’t run the heroku create command on this machine. I run it on my Mac.
So, if you are facing the same error as I got, please check if you already had the ‘heroku’ repo or not. By using this command.
git remote -v
I think you didn’t saw the ‘heroku’ repo there. So, to resolve the issue, please add ‘heroku’ repo manually using this command.
git remote add heroku git@heroku.com:your_app_name.git
Then, you will be able to do…
git push heroku master
This will help you solve the problem.
If you still got an error message, but not the same, might be “permissions denied (publickey)”, you might need to add keys to let Heroku know by this command.
heroku keys:add
Hope this help.
This is by far the most popular structure used by any web application.
To have ‘admin’ in sub-folder using to manage the administrative information.
Such as we have ‘category’ model, and we want to manage the scaffold in www.myrailsapp.com/admin/categories instead of www.myrailsapp.com/categories
Too bad, the generators provided by RoR didn’t included this.
Here are the steps you need to do this practices.
- Generate a blank controller named ‘admin/categories’. (mentioned that it is ‘categories’, you have to manually ‘s’ it.)
- Generate a scaffold ‘category’, the model ‘category’ will be generated while the ‘categories_controller’ and related views will be generated too.
- Move all functions from ‘categories_controller’ to ‘admin/categories_controller’.
- Delete ‘categories_controller’.
- Move all views from ‘views/categories’ to ‘views/admin/categories’.
- Delete the folder ‘views/categories’.
- Edit the routes.rb and add this line :
namespace :admin do resources :categories end
- Edit the ‘admin/categories_controller’, modify the redirect_to to specify the namespace being used like this :
redirect_to([:admin,@category], ...)
- Edit the ‘admin/categories_controller’, modify the categories_url to admin_categories_url.
- Now edit all views, do the same with link_to, if you found @categoy, just add :admin to specify the namespace.
- Do the same in all views, change xxx_categories_path to xxx_admin_categories_path.
- Then modify the form view, change from form_for(@category) to form_for([:admin,@category]).
It will works now.
Also, if the Destroy action didn’t work, didn’t popup a confirm message, please include the bundled ‘prototype.js’ and ‘rails.js’ into your template too.
Hope this help.
Yup, this is the problem #2 of Ruby on Rails which I want to jot down into my blog.
It is an error message showing after I’ve executed ‘rails new …’ (yo, when attempting to create new rails application)
Problem : Error message is undefined command ‘task’.
Reason
This is somewhat a bug in rake 0.9.0 from what I’ve observe this problem over Google.
Solution
Simple by adding this piece of code…
module ::AppName class Application include Rake::DSL end end module ::RakeFileUtils extend Rake::FileUtilsExt end
between the line…
require 'rake'
and
AppName::Application.load_tasks
Hope this help!
Well, I just want to write a quick short post here about the problem I’m facing when beginning with Ruby on Rails on Windows while I didn’t found this problem when I’m riding Ruby on Rails on Mac OSX.
Problem #1 : error message when the database gems were installed but not required binaries. (sqlite3, mysql or else…)
Reason
This is just because you don’t have the required binaries for those database in the correct place.
Solution
Easy, just download the binaries of those database and put it into c:\Ruby192\bin folder or your ruby’s bin folder.
For sqlite3_ruby gem -> you need sqlite3.dll
For mysql gem -> you need libmysql.dll
Sqlite website allow you to download on compiled binaries, I’m not sure about mysql but I just copy the libmysql.dll from wamp/mysql/bin folder.
Hope this help.
Hi friends,
I’m not going to make this post SEO well-written. Just want to make a quick short share about NicheReaper which is claim as one of the great Keyword Research tool for niche marketers.
I also got many emails from big names who almost enjoy promoting this service probably because it has a strong potential to generate passive income commission which is 60% of the $69 for the first month and 40% on the next months. It is by far one of the best affiliate program I found on earth. (I didn’t post about commissions from 2 upsells and 1 down sell yet.)
However, what made me very interesting about NicheReaper is that my most respected marketer is promoting it as he never promotes suck products for a long time.
So, I join in immediately since yesterday.
Today I’m going to share with you the first experience of mine on NicheReaper after about 18 hours of purchase.
What is NicheReaper?
What type of problems it try to solve?
Quick and short, NicheReaper try to solve the problem most niche marketers are facing even they are newcomers or the experienced one.
Yup, it is niche/keyword research.
Do you tired finding a new niche to market by…
- Visit some news site to see what niche is interesting
- Extract keywords related to the chosen niche
- Do competitive intelligence to see if you can dominate or share the profit which is includes checking these parameters, AdWords CPC, Search volume, Competitor’s PageRank, Backlinks check
- If it is good to go, you have to do more by finding a good domain name to easily dominate the niche
Sounds very familiar right? It is a standard process of doing niche marketing. ![]()
NicheReaper is designed to do all of the above process for you and it is doing automatically.
What I think NicheReaper is standing out from other keyword research tools is that it is automatically research new niches/keywords everyday, actually, every minutes because you can see new keywords coming in the system lively.
Haha, like watching stock. ![]()
From the first day, I think NicheReaper is great but what I’m wondering is…
Does NicheReaper worth $69/month?
The main point made me wonder is that NicheReaper is using Phrase Match Type for search volume, yes, I written it correct, Phrase Match not Exact Match which I never experiences with it in my own niche marketing.
I always use Exact Match in the pass, but I saw in the forum from Matt, the co-founder of NicheReaper that Exact Match will produce virtually zero opportunity right now which I almost agreed with him.
I will share you guys in the next week after I’ve more experienced with NicheReaper, also, I will share here the result from trying to market a niche by using Phrase Match instead of Exact Match.
Keep visit here to update.
PS. I’m an active user of the following keyword research tools…
- Market Samurai : The best tool for detailed research!
- Brad Callen’s Niche Finder : The best tool for quick research and identify the profitable niche!
- NicheReaper : The best tool like Niche Finder but I can have virtually nothing in my brain to use it. ![]()
First of all, let me say that I don’t want to blame anyone or any Internet marketing courses.
I found a lot of Internet marketing courses didn’t BOLD this topic enough to make newbies understand what’s the most important task if they are going to make money on niche marketing.
The bad thing is… they will never know they failed on this task and this task almost decide whether you will success on your niche marketing or not.
Yes, it is ‘keyword research‘.
Sounds simple, easy, but are you sure you know it at all?
I’m sharing this because, when I’m entering into the niche marketing era. I’ve tried many niche markets with failed results.
Luckily, I didn’t given up with it and later I found out why I had to ‘failed’.
My problem is the keyword research task.
If you have done keyword research the right way, you probably win in 60% rate.
The great thing is that the remaining 40%, you can do it later, any time.
What’s the right way to do keyword research?
There is only one rule, using the data from Google AdWords Keyword Tool with EXACT match option!
You can use the tool on Google website or it can be any other 3rd party application, just to make sure it query search data from Google AdWords.
Here is the step.
Normally, you just type your niche market keyword into the keyword box.
And normally here is the result which looks promising… (5,400/month for me is good enough if this is niche marketing website)
Anyway, this is unusable for me and it is not truly been searched 5,400/month because the default matching option of the tool is Broad match and Broad match will never drive you a laser targeted traffic!
You have to change the option to use Exact matching option. (It is on the left side)
Then, the result will refresh look like this…
Here is a measurable statistics for niche marketers who is targeting for the keyword “workout plans for weight loss”.
Yes, the truly search volume is only 880/month for this keyword, it is not 5,400/month.
So, if you are doing niche marketing, you 100% don’t want to waste your time with this keyword.
Just find a better one with this right keyword research method.
I’m just write here a list of top reasons why I’ve failed on a goal I would like to do.
Just for being used to remind myself not to fail again.
Top reasons made me failed.
- Discipline – I always failed because of my discipline. Hard to resolve! Must commitment with myself seriously.
- Short power of self motivation – I found when I have a strong motivation power, I can work good, produced a great result, good emotion, attitude and very quickly! However, I just can’t maintain my motivation power, when I lose it, I probably 90% failed on the goal. To resolve this, I’m trying to split big goal into a few numbers of smaller goals with its own motivation point. I’ll share if I can success with this or not.
I don’t think there are any other reasons to make me fail, the root cause should come from these two reasons only and I’m getting hard to resolve it quickly.
What I think is that many people also failed with the same reasons of mine.
Actually, here is the level of entrepreneurs I believe it consists of…
- Low level entrepreneurship : The main problem of this level are… they feel safety when get paid monthly, don’t want to responsible for their own life. The main problem actually is their mindset.
- Medium level entrepreneurship : Gambler, this type of people want to take care their life with themselves, but they have a problem same as me. Discipline and motivation, also, they usually lack of business strategy to grow their own business.
- High level entrepreneurship : Success peoples are this, they always have a strong discipline, more strictly discipline they followed, they feel more motivated! I’ll try myself to be this in one day.
Yup, getting back to resolve my discipline and motivation problem first!
Will share with the resolution I can win over these two reasons when I’ve a winning rate 80/20.
Cheers,
Have you heard “This requires you to do a manual work to produce a good result”?
If you’ve heard it very often, let me guess, you are in Internet marketing niche. Right?
And the truth about Google is that, Google hates the automation tool, and will penalize all activities that automated.
Good for Google because almost 90% of automation tools will produce a junk on the Internet.
So, do something manually is worth your effort.
Yo, it’s correct but actually this is non sense for techie guy like me.
I’ve graduated on Computer Science, I’m a certified professional from Microsoft and I’m a top gun programmer.
My primary objective being a programmer is to turn the manual tasks into automation as much as possible.
Yes, it will reduce the time taken and my clients will have more time to spend what make sense for them to do. Not foolish labor manual tasks.
Directory submission,
Article submission,
Social bookmarking,
Account registration,
Oh god, a lot of foolish things to do in Internet marketing right?
How can I live with those stupid tasks?
The Solution
Luckily, techie guys found a solution, they can made those manually labor tasks into a ‘semi-automated’ tool.
Actually, it is 99.99% manually, but it likes you have an assistant with you and move the mouse, click, typing, and click for you.
The result will be 100% produced by human and Google will never know this.
Yes, it is some what called Macro, Macro recording or the same.
Now it is the trend that guru made this type of semi-auto tool and trying to sell a service like manual directory submission into 1,000 directories.
And actually, they did with these macro without using the real human.
If you got the point, you can turn your day-to-day labor tasks into a money making service as well.
I’m working on it too.
Yes, finally, it came, WordPress 3.1
Have you checked your email last night?
Yup, WordPress 3.1 was released and I just upgraded my personal blog to see if it is worth to upgrade my all existing money making blogs or not.
I’ve summarized some good point after upgraded to WordPress 3.1 here to let you know what’s new is WordPress 3.1.
What’s new in WordPress 3.1 for money making blogger?
- Internal linking browser – if you would like to link to your existing content such as a specific post or page, you can browse it.
- More working space on writing interface – many unnecessary buttons, menus have been hidden in the “Screen Options” at the top right side
- Many great features for plug-in, theme developers
- Some cool features for WordPress Multisite
Is it worth for you to spend a time to upgrade all your money making blogs to WordPress 3.1?
Honestly and personally, my answer is ‘no’.
Why?
- Too few changes made for blogger to help increasing their productivity.
- Risk is too high if your money making blog is in production, can you accept the risk that some plug-ins and themes might break your blog after upgrade to WordPress 3.1?
Anyway, if my blog is for fun, I will definitely upgrade it asap.
Hope this help,
Archives
- May 2012
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- March 2011
- February 2011
- January 2011
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- January 2010
- December 2009
- October 2009
- August 2009
- July 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- June 2007
Tags
.net 2008 asp.net asp.net mvc asus eee c# corona cpa doctrine dom eee eee pc Internet Marketing ios iPad iphone iPhone development iphone sdk javascript make money netbook online marketing pagerank passion php playstation playstation 3 ps3 ranking ror ruby on rails self help Self Improvement self motivation seo sql success symfony take action the secret ultra compact laptop ultra compact notebook vb.net web development wordpress










