简体   繁体   中英

syntax error, unexpected ':', expecting $end

I am attempting to get this going: http://github.com/xaviershay/db2s3

I created a file in config/initializers/db2s3.rb

     DB2S3::Config.instance_eval do
       S3 = {
       :access_key_id     => 'id',
       :secret_access_key => 'key',
       :bucket            => 'name'
    }
  end

In the rake file I added:

require 'db2s3/tasks'

But when I attempt to run the rake task to push it into s3 I get an error.

rake db2s3:backup:full

...../config/initializers/db2s3.rb:13: syntax error, unexpected ':', expecting $end

This could be a text encoding problem.

You might want to try creating a new file and typing out the entire contents instead of copying and pasting from the source. Be sure to save the new file and/or overwrite the old file so that the old contents are not used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM