I'm getting found character that cannot start any token while scanning for the next token
This error is originating from the Figaro gem, which would indicate to me that you probably have a syntax error in config/application.yml
. Double check this file for any incorrect YAML syntax.
YAML exception: Invalid Yaml: while scanning for the next token found character '\t' that cannot start any token in reader
The error message "Invalid Yaml" helps here. By the looks of it you're missing a single colon after 02initdb
So the YAML should look like
container_commands:
01initdb:
command: "php artisan migrate"
02initdb:
command: "php artisan db:seed"
Hope that helps!
Syntax error in my yaml file in Rails for some reason
In YAML, %
cannot start a plain scalar because it is an indicator (used for directives at the document header), see relevant part of the spec.
Your options are:
subject: "%{document_type} pendiente" # double-quoted
subject: '%{document_type} pendiente' # single-quoted
subject: >- # folded block scalar
%{document_type} pendiente
subject: |- # literal block scalar
%{document_type} pendiente
All of these options have the exactly same semantics. The block scalar types are good for long content or when you don't want to think about any problematic characters in your scalar (as double-quoted scalars process escape sequences and single-quoted scalars have '
as special character).
Ruby on Rails - Capistrano deploy error
After two days of trying to solve the error, I went back and redid the tutorial.
It was a problem with the indentation in one of the config files in the server!
Related Topics
How to Organize Minitest/Unit Tests
How to Access Class Variables in Ruby 1.9
Refactoring a Large Routes.Rb File in Rails 4
How to Force One Field in Ruby's CSV Output to Be Wrapped with Double-Quotes
How to Output Names of Ruby Unit Tests
Stream Multiple Body Using Async Sinatra
Cannot Load Such File - Rubygems.Rb
Does C1 Code Coverage Analysis Exist for Ruby
Define_Method: How to Dynamically Create Methods with Arguments
Ruby: How to Group a Ruby Array
Is Alias_Method_Chain Synonymous with Alias_Method
How to Convert a JSON String to an Object
What Do the Fields of Ruby's Gc.Stat Mean
Can a Ruby Script Tell What Directory It's In