remove fontawesome kit and update with webpacker.
This commit is contained in:
parent
4e7a59307f
commit
8c94c176c9
|
@ -1,5 +1,6 @@
|
|||
COMPOSE_PROJECT_NAME=app
|
||||
DATABASE_URL=postgres://user:password@postgres:5432
|
||||
FONTAWESOME_NPM_AUTH_TOKEN=TODO_CHANGE_ME
|
||||
NODE_ENV=development
|
||||
POSTGRES_USER=user
|
||||
POSTGRES_PASSWORD=password
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
@fortawesome:registry=https://npm.fontawesome.com/
|
||||
//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}
|
|
@ -15,7 +15,7 @@ This repo is a designed to be a Dockerized Rails 6 template:
|
|||
- `yarn install --check-files`
|
||||
- `Find/replace all TODO`
|
||||
- `docker-compose up --build`
|
||||
- `Replace FontAwesome Pro kit id in 'app/views/layouts/application.html.erb'`
|
||||
- `FONTAWESOME_NPM_AUTH_TOKEN=CHANGE_ME yarn add @fortawesome/fontawesome-pro`
|
||||
|
||||
### Dependencies
|
||||
|
||||
|
@ -56,6 +56,7 @@ To start the application using docker compose locally:
|
|||
| `DB_MIN_CONNECTIONS` | Db Minimum Connections | 5
|
||||
| `DB_SOCKET_TIMEOUT` | Db socket timeout | 5
|
||||
| `DB_WAIT_QUEUE_TIMEOUT` | Db Wait queue timeout | 5
|
||||
| `FONTAWESOME_NPM_AUTH_TOKEN` | FontAwesome Auth token | -
|
||||
| `LOG_LEVEL` | Log level | warn
|
||||
| `REDIS_URL` | Redis Url | redis://localhost:6379/0
|
||||
| `SMTP_HOST` | Smpt address | `localhost`
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
import '@fortawesome/fontawesome-pro/js/all.js'
|
|
@ -8,8 +8,8 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<%= stylesheet_link_tag 'application', media: 'all' %>
|
||||
<script async src="https://kit.fontawesome.com/<%= App::Config::FONT_AWESOME_KIT_ID %>.js" crossorigin="anonymous"></script>
|
||||
<%= stylesheet_link_tag "application", media: "all" %>
|
||||
<%= javascript_pack_tag "fontawesome-pro" %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -22,6 +22,6 @@
|
|||
<%= render "shared/footer" %>
|
||||
</body>
|
||||
|
||||
<%= javascript_pack_tag 'application' %>
|
||||
<%= javascript_pack_tag "application" %>
|
||||
<%= javascript_controller_pack_tag_helper %>
|
||||
</html>
|
||||
|
|
|
@ -26,7 +26,6 @@ module App
|
|||
APP_NAME = 'app' # TODO: Update name
|
||||
APP_TITLE = 'TODO: Update in config/application.rb'
|
||||
DATABASE_URL = ENV.fetch('DATABASE_URL') { "postgres://localhost:5432/#{APP_NAME}_#{Rails.env}" }
|
||||
FONT_AWESOME_KIT_ID = ENV.fetch('FONT_AWESOME_KIT_ID') { 'TODO: CHANGE ME' }
|
||||
REDIS_URL = ENV.fetch('REDIS_URL') { 'redis://localhost:6379/0' }
|
||||
SMTP_HOST = ENV.fetch('SMTP_HOST') { 'localhost' }
|
||||
SMTP_PORT = ENV.fetch('SMTP_PORT') { 1025 }
|
||||
|
|
Loading…
Reference in New Issue