Posts

Showing posts with the label server

Laravel Error 500 Whoops, looks like something went wrong – Exception

php artisan key:generate generate key php artisan config:clear clear project cache php artisan config:cache php artisan serve start server again

An error occurred while installing rmagick (2.16.0), and Bundler cannot continue

An error occurred while installing rmagick (2.16.0), and Bundler cannot continue You have to install library of rmagick in your system. sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev

How to locate nginx configuraion file on server

How to locate nginx configuraion file on server login to server on console  cd /etc/nginx/ sudo nano nginx.conf if does not locate cd /usr/local/nginx/conf/ sudo nano nginx.conf or try this too cd /usr/local/etc/nginx/ sudo nano nginx.conf

SQL COMMANDS || Oracle SQL COMMANDS Sql Tutorial -3

Types of SQL commands 1) DDL(data definition language) commands:       Used to create or change or delete any data base objects CREATE ALTER DROP TRUNCATE RENAME 2) DML(data manipulation language) COMMANDS       Used to fetch data / enter new data/ changing existed data / deleting the data from table. INSERT  UPDATE  DELETE  TRUNCATE 3) DRL(dataretrieval language) Command     SELECT (logicalcommand) 4) DCL(DATA CONTROL LANGUAGE) COMMANDS     Used to control the access of data base objects. These commands are used by DBA (databaseadministrator) GRANT  REVOKE 5) TCL(TRANSACTION CONTROL LANGUAGE) COMMANDS      Used to save or cancel the actions/transactions made on table data. COMMIT  ROLLBACK  SAVEPOINT

Create react app by yarn-server || yarn Server || React App

Image
first of all install Yarn from here  https://yarnpkg.com/en/ click on get started and install yarn server Create a directory mkdir <your_directory_name> Run command yarn init (press enter and use all defaults) by this command package.json file will be created in root directory for creating Dependency we run this command yarn add babel-cli babel-preset-react --dev yarn add babel-cli babel-preset-env --dev yarn global add babel-cli babel-preset-env babel-preset-react ( Installed "babel-cli@6.26.0" with binaries:  - babel-doctor  - babel  - babel-node  - babel-external-helpers ) Now again make a directory inside root directory mkdir public (you can take name as you want) mkdir src (you can take name what ever you want you want) inside public folder create two new file index.html index.js inside src folder create one new file  main.js ( this is file where react app execution is start. you can take name what ever you want). Add this code into your i