Skip to content

Commit

Permalink
Tweak project name to blockbasestarter
Browse files Browse the repository at this point in the history
  • Loading branch information
qichunren committed Oct 14, 2024
1 parent 4a74f91 commit f167bc7
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# check=error=true

# This Dockerfile is designed for production, not development. Use with Kamal or build'n'run by hand:
# docker build -t rails8demoskipturbo .
# docker run -d -p 80:80 -e RAILS_MASTER_KEY=<value from config/master.key> --name rails8demoskipturbo rails8demoskipturbo
# docker build -t blockbasestarter .
# docker run -d -p 80:80 -e RAILS_MASTER_KEY=<value from config/master.key> --name blockbasestarter blockbasestarter

# For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html

Expand Down
2 changes: 1 addition & 1 deletion app/frontend/entrypoints/application_react.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import '../css/index.css';
import App from '../components/app'

document.addEventListener('DOMContentLoaded', () => {
const container = document.body.appendChild(document.createElement('div'));
const container = document.getElementById('root');
const root = createRoot(container);
root.render(<App />);
})
7 changes: 5 additions & 2 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title><%= content_for(:title) || "Rails8demoskipturbo" %></title>
<title><%= content_for(:title) || "blockbasestarter" %></title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
Expand All @@ -22,6 +22,9 @@
<%= vite_javascript_tag 'application_react.jsx' %>
</head>
<body>
<%= yield %>
<div id="root"></div>
<div class="container mx-auto p-4">
<%= yield %>
</div>
</body>
</html>
7 changes: 2 additions & 5 deletions app/views/posts/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<p style="color: green"><%= notice %></p>

<% content_for :title, "Posts" %>

<p style="color: green"><%= notice %></p>
<h1>Posts</h1>

<div id="posts">
<% @posts.each do |post| %>
<%= render post %>
Expand All @@ -13,4 +10,4 @@
<% end %>
</div>

<%= link_to "New post", new_post_path %>
<%= link_to "New post", new_post_path, class: "bg-blue-500 text-white px-4 py-2 rounded-md" %>
2 changes: 1 addition & 1 deletion app/views/posts/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
<%= link_to "Edit this post", edit_post_path(@post) %> |
<%= link_to "Back to posts", posts_path %>

<%= button_to "Destroy this post", @post, method: :delete %>
<%= button_to "Destroy this post", @post, method: :delete, class: "bg-red-500 text-white px-4 py-2 rounded-md" %>
</div>
4 changes: 2 additions & 2 deletions app/views/pwa/manifest.json.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Rails8demoskipturbo",
"name": "BlockBaseStarter",
"icons": [
{
"src": "/icon.png",
Expand All @@ -16,7 +16,7 @@
"start_url": "/",
"display": "standalone",
"scope": "/",
"description": "Rails8demoskipturbo.",
"description": "BlockBaseStarter.",
"theme_color": "red",
"background_color": "red"
}
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module Rails8demoskipturbo
module BlockBaseStarter
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 8.0
Expand Down
8 changes: 4 additions & 4 deletions config/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Name of your application. Used to uniquely configure containers.
service: rails8demoskipturbo
service: blockbasestarter

# Name of the container image.
image: your-user/rails8demoskipturbo
image: your-user/blockbasestarter

# Deploy to these servers.
servers:
Expand Down Expand Up @@ -47,7 +47,7 @@ env:
# WEB_CONCURRENCY: 2

# Match this to any external database server to configure Active Record correctly
# Use rails8demoskipturbo-db for a db accessory server on same machine via local kamal docker network.
# Use blockbasestarter-db for a db accessory server on same machine via local kamal docker network.
# DB_HOST: 192.168.0.2

# Log everything from Rails
Expand All @@ -65,7 +65,7 @@ aliases:
# Use a persistent storage volume for sqlite database files and local Active Storage files.
# Recommended to change this to a mounted volume path that is backed up off server.
volumes:
- "rails8demoskipturbo_storage:/rails/storage"
- "blockbasestarter_storage:/rails/storage"


# Bridge fingerprinted assets, like JS and CSS, between versions to avoid
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f167bc7

Please sign in to comment.