curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
apt-get update && apt-get install yarn
yarn add boostrap jquery popper.js
@import "bootstrap/scss/bootstrap";
const { environment } = require('@rails/webpacker')
module.exports = environment
import { environment } from '@rails/webpacker'
import { ProvidePlugin } from 'webpack' environment.plugins.append('Provide', new ProvidePlugin({ s: 'jquery', jQuery: 'jquery', Popper: ['popper.js', 'default'] }))
export default environment
require("channels") require("packs/main.js")
sudo apt-get install postgresql postgresql-client libpq5 libpq-dev sudo gem install pg
sudo -u postgres psql postgres=# \password postgres=# create user "noppression" with password 'a621c6144e5950838671fb2fa0064154'; postgres=# create database "noppression_prod" owner "noppression";
default: &default adapter: postgresql pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> timeout: 5000 host: localhost username: noppression password: a621c6144e5950838671fb2fa0064154
development: <<: *default database: noppression_dev
test: <<: *default database: noppression_test
production: <<: *default database: noppression_prod
rake db:setup
git clone https://github.com/BareMetalNetworks/Noppression-news noppression.news
RAILS_ENV=production bundle exec rails c
or, on noppression server use
console
<script async src="https://www.googletagmanager.com/gtag/js?id=G-D5X0D0KFBE"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-D5X0D0KFBE'); </script>