Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8902727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:41:12+00:00 2026-06-15T01:41:12+00:00

I am a newb and when running the below rake task keep getting the

  • 0

I am a newb and when running the below rake task keep getting the error message “Don’t know how to build task ‘create_postgis_template'”.

My rake file looks as follows:

require(File.join(File.dirname(__FILE__), 'config', 'boot'))

require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'tasks/rails'

namespace :postgres do
  desc "create postgis db template on osx boxes"
  task :create_postgis_template do
    print "Enter your postgres username: "
    user = STDIN.gets
    user.chomp!
    root = File.dirname(__FILE__)
    cmd  = "psql -U #{user} -f assets/sql/postgis_template_osx.sql template1"
    system(cmd)
  end
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:41:13+00:00Added an answer on June 15, 2026 at 1:41 am

    The create_postgis_template task is defined within the postgres namespace; so it would be called from rake postgres:create_postgis_template command, and not rake create_postgis_template command.

    Best to run rake -T to see all the tasks available as rake tasks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is somewhat of a newb question but I am running into
Newb here trying to fix my php code. Getting an error at line 89.
Newb questions incoming. I'm running MySQL locally and I am having a really hard
Newb question. How can you know what the main launch Activity is? Learning Android.
Python newb...beware! I am trying to recursively ftp some files. In the script below,
I am running the code below and the result is totally different when it
newb question there. Having MySQL database/tables structure below: CREATE DATABASE `dbTest` CREATE TABLE IF
I've been pulling my hair out with this all day. Probably a newb error
Sorry for the newb factor but I just created a hello world file and
Newb here. I am instantiating the class below from a Silverlight page's code-behind. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.