Could not find "Procfile" in any of your source paths. Your current source paths are: /Users/my_user/Documents/dev/my_app/https:/raw.githubusercontent.com/excid3/jumpstart/master
rails new myapp -d postgresql -m https://raw.githubusercontent.com/excid3/jumpstart/master/template.rb
rails new myapp -d postgresql -m template.rb
+ERROR: Procfile does not exist
Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)
(erb):1:in `template': undefined local variable or method `model_resource_name' for #<Erb::Generators::ScaffoldGenerator:0x00007fd4e005ccf8> (NameError)
<%%= form_with(model: <%= model_resource_name %>, local: true) do |form| %>
<%%= form_with(model: <%= singular_name %>, local: true) do |form| %>
template': undefined local variable or method `model_resource_name' for #<Erb::Generators::ScaffoldGenerator
Jumpstart Giving me This error
/Users/noman/.rvm/gems/ruby-2.4.1/gems/thor-0.20.0/lib/thor/actions/file_manipulation.rb:263:in `binread': No such file or directory @ rb_sysopen - /Users/noman/Projects/UOB/uob/uob/app/dashboards/announcement_dashboard.rb (Errno::ENOENT)
Hi, I'm trying to run jumpstart on my Cloud9 IDE.
Installed yarn successfully and generated the app but when trying to run the app it shuts down. It ends like this:
18:30:37 webpack.1 | + 11 hidden modules
18:30:37 webpack.1 | webpack: Compiled successfully.
18:30:37 sidekiq.1 | exited with code 1
18:30:37 system | sending SIGTERM to all processes
18:30:37 web.1 | - Gracefully stopping, waiting for requests to finish
18:30:37 web.1 | === puma shutdown: 2018-10-03 18:30:37 +0000 ===
18:30:37 web.1 | - Goodbye!
18:30:37 web.1 | Exiting
18:30:37 web.1 | terminated by SIGTERM
18:30:37 webpack.1 | exited with code 0
Any idea on how run the server and see the app running?
when deploying to heroku I get the following error:
2018-11-05T20:24:11.935122+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=gwfcm.herokuapp.com request_id=faaeeb99-5f62-4354-b05e-b5540d91f459 fwd="188.8.131.52" dyno= connect= service= status=503 bytes= protocol=http
Is this a sommon issue with jumpstart and heroku?
I'm trying to create my own template using jumpstart as a guide but the command "directory" is not copying the files from my source directory.
I'm working in local in a folder called templates that contains the file
template.rb and also a subfolder with config/initializers/better_errors.rb
I'm doing as in jumpstart:
def copy_initializers directory "config/initializers", force: true end
But the file
better_errors.rb is not being copied in the Rails folder. The console log that I get is as follows:
exist config/initializers identical config/initializers/application_controller_renderer.rb identical config/initializers/assets.rb identical config/initializers/backtrace_silencers.rb identical config/initializers/cookies_serializer.rb create config/initializers/cors.rb identical config/initializers/filter_parameter_logging.rb identical config/initializers/inflections.rb identical config/initializers/mime_types.rb create config/initializers/new_framework_defaults_5_1.rb identical config/initializers/wrap_parameters.rb
Is it possible to pre-configure rails template to use postgres as a default db, disable sprockets etc?
Of course i can create .railsrc file with following content
But can i hardcode those options in template?
I started a new application using the template from Github and it's been amazing. I have a question though: Since I created the app some changes have been made in the original template repo. How can I keep my app up to date with the template updates?
Rails application templates only work for generating new apps, so you can't get any updates on an existing app with them.
You can read through the changes and apply them to your app though. It's a manual process instead but it will get you updated.
Join 31,353+ developers who get early access to new screencasts, articles, guides, updates, and more.