forked from zauberware/rails-devise-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
8,393 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.DS_Store | ||
.bin | ||
.git | ||
.gitignore | ||
.bundleignore | ||
.bundle | ||
.byebug_history | ||
.rspec | ||
tmp | ||
log | ||
test | ||
config/deploy | ||
public/packs | ||
public/packs-test | ||
node_modules | ||
yarn-error.log | ||
coverage/ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
DEFAULT_URL=0.0.0.0:3000 | ||
CLIENT_URL=0.0.0.0:8000 | ||
WEB_CONCURRENCY=2 | ||
RAILS_MAX_THREADS=5 | ||
ADMIN_EMAIL=demo@zauberware.com | ||
ADMIN_PASSWORD=demo1234 | ||
ADMIN_FIRST_NAME=John | ||
ADMIN_LAST_NAME=Doe | ||
DEVISE_SECRET_KEY=replace-this-key-with-a-secret | ||
DEVISE_MAILER_FROM=test@domain.com | ||
IS_HTTP_AUTH_PROTECTED=false | ||
HTTP_AUTH_USER=demo | ||
HTTP_AUTH_PASSWORD=demo1234 | ||
SMTP_ADDRESS= | ||
SMTP_PORT= | ||
SMTP_DOMAIN= | ||
SMTP_USERNAME= | ||
SMTP_PASSWORD= | ||
SMTP_AUTH=login | ||
SMTP_ENABLE_STARTTLS_AUTO=true | ||
RACK_ATTACK_ENABLED=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.6.5 | ||
2.6.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM ruby:2.6 | ||
|
||
ENV BUNDLER_VERSION=2.1.4 | ||
|
||
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client npm | ||
RUN npm install -g npm@latest | ||
RUN npm install --global yarn | ||
|
||
RUN gem install bundler -v 2.1.4 | ||
|
||
WORKDIR /myapp | ||
COPY Gemfile /myapp/Gemfile | ||
COPY Gemfile.lock /myapp/Gemfile.lock | ||
|
||
RUN bundle check || bundle install | ||
COPY . /myapp | ||
|
||
# Add a script to be executed every time the container starts. | ||
COPY entrypoint.sh /usr/bin/ | ||
RUN chmod +x /usr/bin/entrypoint.sh | ||
ENTRYPOINT ["entrypoint.sh"] | ||
EXPOSE 3000 | ||
|
||
# Configure the main process to run when running the image | ||
CMD ["rails", "server", "-b", "0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
MIT License | ||
License | ||
|
||
Copyright (c) 2019 zauberware technologies | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
Copyright (c) 2021 My Company |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# You can run these commands in separate shells | ||
web: rails s -p 3000 | ||
|
||
# Next line runs a watch process with webpack to compile the changed files. | ||
# When making frequent changes to client side assets, you will prefer building webpack assets | ||
# upon saving rather than when you refresh your browser page. | ||
# Note, if using React on Rails localization you will need to run | ||
# `bundle exec rake react_on_rails:locale` before you run bin/webpack | ||
client: sh -c 'rm -rf public/packs/* || true && bin/webpack -w' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Procfile for development using HMR | ||
|
||
web: rails s -p 3000 | ||
|
||
# Note, hot and live reloading don't work with the default generator setup on | ||
# top of the rails/webpacker Webpack config with server rendering. | ||
# If you have server rendering enabled (prerender is true), you either need to | ||
# a. Ensure that you have dev_server.hmr and dev_server.inline BOTH set to false, | ||
# and you have this option in your config/initializers/react_on_rails.rb: | ||
# config.same_bundle_for_client_and_server = true | ||
# If you have either config/webpacker.yml option set to true, you'll see errors like | ||
# "ReferenceError: window is not defined" (if hmr is true) | ||
# "TypeError: Cannot read property 'prototype' of undefined" (if inline is true) | ||
# b. Skip using the webpack-dev-server. bin/webpack --watch is typically | ||
fast enough. | ||
# c. See the React on Rails README for a link to documentation for how to setup | ||
# SSR with HMR and React hot loading using the webpack-dev-server only for the | ||
# client bundles and a static file for the server bundle. | ||
|
||
# Run the webpack-dev-server for client and maybe server files | ||
webpack-dev-server: bin/webpack-dev-server | ||
|
||
# Keep the JS fresh for server rendering. Remove if not server rendering. | ||
# Especially if you have not configured generation of a server bundle without a hash. | ||
# as that will conflict with the manifest created by the bin/webpack-dev-server | ||
# rails-server-assets: SERVER_BUNDLE_ONLY=yes bin/webpack --watch |
Oops, something went wrong.