- clone the repo
$ git clone --bare https://github.com/exampleuser/old-repository.git
- Push to new repository
$ cd old-repository.git
.env
must be in root of the projectprocess.env.
// use this to make sure all system is up to date before creating new rails app
gem update --system
To deploy React app, which was created using 'create-react-app --use-npm ', to Heroku, the following option need to be included:
heroku create <appname> --buildpack mars/create-react-app
If yo dont use those buildpack option, you might encounter Websocket error when opening the website using HTTPS instead of HTTP.
Information comes from https://create-react-app.dev/docs/deployment/#heroku
*{ | |
margin: 0; | |
padding: 0; | |
} | |
body, html{ | |
height: 100%; | |
} | |
.container{ |
// | |
// Use this template to establish connection to MongoDB with Promise to handle error | |
// See documentation at https://mongoosejs.com/docs/connections.html | |
// If initial connection fails, it will not attempt to reconnect. | |
// It will attempt to reconnect if there's error AFTER the initial successful connection. | |
mongoose.connect(process.env.DB_URI, {useNewUrlParser: true}) | |
.then(() => { | |
console.log("MongoDB database initial connection established successfully."); | |
}) |
I hereby claim:
To claim this, I am signing this object:
'use babel';
import ZenkbarieswordcountView from './zenkbarieswordcount-view';
import { CompositeDisposable } from 'atom';
export default {
zenkbarieswordcountView: null,
modalPanel: null,
[1] pry(#<Game>)> pieces.to_a | |
=> [#<Pawn id: 2235, type: "Pawn", row: 1, column: 4, in_game: true, player_id: 729, game_id: 243, created_at: "2016-03-07 16:45:49", updated_at: "2016-03-07 16:45:49", color: "black">] | |
[2] pry(#<Game>)> F....................................................................................... | |
Failures: | |
1) Moving pieces Dragging a piece(black_pawn) to a valid location | |
Failure/Error: visit game_path(game) | |
Capybara::Poltergeist::StatusFailError: |