Code Monkey home page Code Monkey logo

oficina-virtual's Introduction

processwire-demo

Requirements

  1. Setup git repository.
  • Add remotes (origin, processwire-demo).
  • Publish branches.
  • Protect master branch at GitHub.
  • git fetch --all
  • git checkout master.
  • git merge processwire-demo/release.
  • git push -u origin master
  • git checkout -b beta
  1. Change Vagrantfile VM name.
  • Use next available IP and update registry.
  • bootstrap.sh DB name.
  1. Enable travis.
  • bash <(curl -sL https://git.io/hash-and-encrypt) Ctrl+D
  • Deploy on master and beta.
  1. Configure the beta environment.
  • Add aditional domain <project-name>.67.227.237.109.nip.io.
  • Document root: public_html/....
  • FTP username: deploy.
  • Generate a safe FTP password without special characters @, %, :, /, etc...
  1. Save new secret as project-<project-name>.txt.

    GIT_FTP_URL_beta='ftp://<user>:<pass>@<host>/'
    u: <dbuser> (larealco_u00)
    p: <dbpass>
    d: <dbname> (larealco_db00)
    
  2. Config repo settings (Teams, Protected branches, Webhooks)

  3. Run travis enable.

  4. Initial deploy.

  • git ftp add-scope <branch> 'ftp://...'.
  • git config git-ftp.syncroot public.
  • Test connectivity git ftp log -s <branch> -vv.
  • Upload files git ftp init -s <branch> -vv.
  • Test it git checkout <branch>, git ftp push -s <branch> -vv
  1. Create default GitHub labels (github-create-labels.sh).

How to install

  1. Run vagrant up.
  2. Duplicate public/htaccess.txt => public/.htaccess.
  3. Duplicate public/site/config-sample.php => public/site/config.php.
  4. Run installer.
  • DB Host: localhost => 127.0.0.1.
  • Add example.com, **www.**example.com in $config->httpHosts.
  • Account Information: root, 123456, [email protected].
  • Uncheck all cleanup options.

Optionals

  • Do the macarena dance ๐Ÿ’ƒ.

--

Additional Modules


  <?php
    # Reset password
    $u = $users->get('root');
    $u->setOutputFormatting(false);
    $u->pass = '123456';
    $u->save();
  ?>

oficina-virtual's People

Contributors

jesaa avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.