Update some things for a better default experience

This commit is contained in:
Brian McManus 2022-10-25 19:08:05 +00:00 committed by GitHub
parent a3b6c3d754
commit 52acf1d5c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 23 deletions

View file

@ -1,4 +1,18 @@
{
"postAttachCommand": {
"server": "rails server",
},
"portsAttributes": {
"3000": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"customizations": {
"codespaces": {
"openFiles": ["config/routes.rb", "README.md"]
}
},
"extensions": [
"rebornix.Ruby"
],

View file

@ -298,7 +298,7 @@ DEPENDENCIES
webdrivers
RUBY VERSION
ruby 3.0.3p157
ruby 3.1.2p20
BUNDLED WITH
2.3.12

View file

@ -1,24 +1,7 @@
# README
# GitHub Codespaces ♥️ Ruby on Rails
This README would normally document whatever steps are necessary to get the
application up and running.
Welcome to your shiny new Codespace running Rails! We've got everything fired up and running for you to explore Rails.
Things you may want to cover:
You've got a blank canvas to work on from a git perspective as well. There's a single initial commit with the what you're seeing right now - where you go from here is up to you!
* Ruby version
* System dependencies
* Configuration
* Database creation
* Database initialization
* How to run the test suite
* Services (job queues, cache servers, search engines, etc.)
* Deployment instructions
* ...
Everything you do here is contained within this one codespace. There is no repository on GitHub yet. If and when youre ready you can click "Publish to GitHub" and well create your repository and push up your project. If you were just exploring then and have no further need for this code then you can simply delete your codespace and it's gone forever.

View file

@ -60,7 +60,7 @@ Rails.application.configure do
config.assets.quiet = true
config.action_dispatch.default_headers = {
'X-Frame-Options' => 'ALLOW-FROM githubpreview.dev'
'X-Frame-Options' => 'ALLOW-FROM preview.app.github.dev'
}
# Raises error for missing translations.
@ -71,4 +71,7 @@ Rails.application.configure do
# Uncomment if you wish to allow Action Cable access from any origin.
# config.action_cable.disable_request_forgery_protection = true
# Allow requests from our preview domain.
config.hosts << "#{ENV['CODESPACE_NAME']}-3000.preview.app.github.dev"
end